From 251f07c8155c3b48620af510b9b17f932550f188 Mon Sep 17 00:00:00 2001 From: ShadiGhasemi Date: Thu, 8 Jul 2021 09:00:16 +0430 Subject: [PATCH] #41 disable initial magnification --- lib/src/crop.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/crop.dart b/lib/src/crop.dart index 7427e4e..a2a66ca 100755 --- a/lib/src/crop.dart +++ b/lib/src/crop.dart @@ -325,6 +325,9 @@ class CropState extends State with TickerProviderStateMixin, Drag { viewWidth, viewHeight, ); + // disable initial magnification + _scale = _minimumScale ?? 1.0; + _view = _getViewInBoundaries(_scale); }); });