InteractiveScrollViewer class

InteractiveScrollViewer enables pan and zoom interactions with its child.

Inheritance
Annotations

Constructors

InteractiveScrollViewer(Widget child, {Key? key, Clip clipBehavior = Clip.hardEdge, _DoubleTapZoomInvokedCallback? onDoubleTapZoomInvoked, bool alignPanAxis = false, EdgeInsets boundaryMargin = EdgeInsets.zero, double maxScale = 3, double minScale = 1, GestureScaleStartCallback? onInteractionStart, GestureScaleUpdateCallback? onInteractionUpdate, GestureScaleEndCallback? onInteractionEnd, bool panEnabled = true, bool scaleEnabled = true, bool constrained = true, bool enableDoubleTapZooming = true, TransformationController? transformationController})
Constructor for InteractiveScrollable.
const

Properties

alignPanAxis bool
If true, panning is only allowed in the direction of the horizontal axis or the vertical axis.
final
boundaryMargin EdgeInsets
A margin for the visible boundaries of the child.
final
child Widget
The Widget to perform the transformations on.
final
clipBehavior Clip
If set to Clip.none,the child may extend beyond the size of the InteractiveScrollable, but it will not receive gestures in these areas. Be sure that the InteractiveScrollable is the desired size when using Clip.none.
final
constrained bool
Whether the normal size constraints at this point in the widget tree are applied to the child.
final
enableDoubleTapZooming bool
If true, double tap zooming is enabled.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxScale double
The maximum allowed scale.
final
minScale double
The minimum allowed scale.
final
onDoubleTapZoomInvoked → _DoubleTapZoomInvokedCallback?
Triggers when double tap
final
onInteractionEnd GestureScaleEndCallback?
Called when the user ends a pan or scale gesture on the widget.
final
onInteractionStart GestureScaleStartCallback?
Called when the user begins a pan or scale gesture on the widget.
final
onInteractionUpdate GestureScaleUpdateCallback?
Called when the user updates a pan or scale gesture on the widget.
final
panEnabled bool
If false, the user will be prevented from panning.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleEnabled bool
If false, the user will be prevented from scaling.
final
transformationController TransformationController?
A TransformationController for the transformation performed on the child.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() InteractiveScrollViewerState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited