Explorar o código

Add debugLogs to track rebuilds

Neeraj Gupta %!s(int64=3) %!d(string=hai) anos
pai
achega
041c19137e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/ui/zoomable_image.dart

+ 2 - 0
lib/ui/zoomable_image.dart

@@ -48,11 +48,13 @@ class _ZoomableImageState extends State<ZoomableImage>
   @override
   void initState() {
     _photo = widget.photo;
+    debugPrint('initState for ${_photo.toString()}');
     _scaleStateChangedCallback = (value) {
       if (widget.shouldDisableScroll != null) {
         widget.shouldDisableScroll(value != PhotoViewScaleState.initial);
       }
       _isZooming = value != PhotoViewScaleState.initial;
+      debugPrint("isZooming = $_isZooming, currentState $value");
       // _logger.info('is reakky zooming $_isZooming with state $value');
     };
     super.initState();