Browse Source

Add debugLogs to track rebuilds

Neeraj Gupta 3 năm trước cách đây
mục cha
commit
041c19137e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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
   @override
   void initState() {
   void initState() {
     _photo = widget.photo;
     _photo = widget.photo;
+    debugPrint('initState for ${_photo.toString()}');
     _scaleStateChangedCallback = (value) {
     _scaleStateChangedCallback = (value) {
       if (widget.shouldDisableScroll != null) {
       if (widget.shouldDisableScroll != null) {
         widget.shouldDisableScroll(value != PhotoViewScaleState.initial);
         widget.shouldDisableScroll(value != PhotoViewScaleState.initial);
       }
       }
       _isZooming = value != PhotoViewScaleState.initial;
       _isZooming = value != PhotoViewScaleState.initial;
+      debugPrint("isZooming = $_isZooming, currentState $value");
       // _logger.info('is reakky zooming $_isZooming with state $value');
       // _logger.info('is reakky zooming $_isZooming with state $value');
     };
     };
     super.initState();
     super.initState();