From b76253b60abff70dbac7c34348a3e067a8fb9cf8 Mon Sep 17 00:00:00 2001 From: Justin McCandless Date: Mon, 26 Oct 2020 08:42:04 -0700 Subject: [PATCH] minScale docs reference the need for a larger boundaryMargin when scaling below 1.0 (#68494) --- packages/flutter/lib/src/widgets/interactive_viewer.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/flutter/lib/src/widgets/interactive_viewer.dart b/packages/flutter/lib/src/widgets/interactive_viewer.dart index 1a3d284274..9a4a3192f0 100644 --- a/packages/flutter/lib/src/widgets/interactive_viewer.dart +++ b/packages/flutter/lib/src/widgets/interactive_viewer.dart @@ -227,6 +227,11 @@ class InteractiveViewer extends StatefulWidget { /// /// The scale will be clamped between this and [maxScale] inclusively. /// + /// Scale is also affected by [boundaryMargin]. If the scale would result in + /// viewing beyond the boundary, then it will not be allowed. By default, + /// boundaryMargin is EdgeInsets.zero, so scaling below 1.0 will not be + /// allowed in most cases without first increasing the boundaryMargin. + /// /// Defaults to 0.8. /// /// Cannot be null, and must be a finite number greater than zero and less