InteractiveViewer constrained docs (#68327)

This commit is contained in:
Justin McCandless 2020-10-23 14:02:03 -07:00 committed by GitHub
parent 59544e377d
commit 0c63d63b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,15 @@ class InteractiveViewer extends StatefulWidget {
/// If set to false, then the child will be given infinite constraints. This /// If set to false, then the child will be given infinite constraints. This
/// is often useful when a child should be bigger than the InteractiveViewer. /// is often useful when a child should be bigger than the InteractiveViewer.
/// ///
/// For example, for a child which is bigger than the viewport but can be
/// panned to reveal parts that were initially offscreen, [constrained] must
/// be set to false to allow it to size itself properly. If [constrained] is
/// true and the child can only size itself to the viewport, then areas
/// initially outside of the viewport will not be able to receive user
/// interaction events. If experiencing regions of the child that are not
/// receptive to user gestures, make sure [constrained] is false and the child
/// is sized properly.
///
/// Defaults to true. /// Defaults to true.
/// ///
/// {@tool dartpad --template=stateless_widget_scaffold} /// {@tool dartpad --template=stateless_widget_scaffold}