Add debugLogs to track rebuilds

This commit is contained in:
Neeraj Gupta 2022-06-27 01:52:07 +05:30
parent 06336d863a
commit 041c19137e
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -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();