From 041c19137edce171063d5a43834581532e1b397c Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 27 Jun 2022 01:52:07 +0530 Subject: [PATCH] Add debugLogs to track rebuilds --- lib/ui/zoomable_image.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ui/zoomable_image.dart b/lib/ui/zoomable_image.dart index b4075e22e..94cfbf0f1 100644 --- a/lib/ui/zoomable_image.dart +++ b/lib/ui/zoomable_image.dart @@ -48,11 +48,13 @@ class _ZoomableImageState extends State @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();