minScale docs reference the need for a larger boundaryMargin when scaling below 1.0 (#68494)

This commit is contained in:
Justin McCandless 2020-10-26 08:42:04 -07:00 committed by GitHub
parent a676863939
commit b76253b60a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,11 @@ class InteractiveViewer extends StatefulWidget {
/// ///
/// The scale will be clamped between this and [maxScale] inclusively. /// 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. /// Defaults to 0.8.
/// ///
/// Cannot be null, and must be a finite number greater than zero and less /// Cannot be null, and must be a finite number greater than zero and less