From 1cdb82c7792c5cd9bd82baa51eb298174a99bddd Mon Sep 17 00:00:00 2001 From: Samuel Ong Date: Sun, 19 Mar 2023 09:15:39 +0800 Subject: [PATCH] fixes #6 --- lib/zoom_pinch_overlay.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zoom_pinch_overlay.dart b/lib/zoom_pinch_overlay.dart index 67d1ecc..4b57d27 100644 --- a/lib/zoom_pinch_overlay.dart +++ b/lib/zoom_pinch_overlay.dart @@ -111,7 +111,7 @@ class _ZoomOverlayState extends State _controllerReset ..addListener(() { - _transformWidget.currentState!.setMatrix(_animationReset.value); + _transformWidget.currentState?.setMatrix(_animationReset.value); }) ..addStatusListener((status) { if (status == AnimationStatus.completed) hide();