From 83c67d17f927d4f5e5f26e8fedadf5ea38e706c9 Mon Sep 17 00:00:00 2001 From: Francisco Bernal Date: Wed, 18 May 2022 07:43:17 -0700 Subject: [PATCH] Updating object detection example painter (#257) --- .../painters/object_detector_painter.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/google_ml_kit/example/lib/vision_detector_views/painters/object_detector_painter.dart b/packages/google_ml_kit/example/lib/vision_detector_views/painters/object_detector_painter.dart index 6f5d755d..b2caeb2d 100644 --- a/packages/google_ml_kit/example/lib/vision_detector_views/painters/object_detector_painter.dart +++ b/packages/google_ml_kit/example/lib/vision_detector_views/painters/object_detector_painter.dart @@ -63,7 +63,5 @@ class ObjectDetectorPainter extends CustomPainter { } @override - bool shouldRepaint(covariant CustomPainter oldDelegate) { - return false; - } + bool shouldRepaint(covariant CustomPainter oldDelegate) => true; }