AnimatedInteractiveViewer class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedInteractiveViewer
Constructors
- AnimatedInteractiveViewer({Key? key, required Widget child, Curve curve = Curves.ease, Duration duration = const Duration(milliseconds: 200), Clip clipBehavior = Clip.none, PanAxis panAxis = PanAxis.free, EdgeInsets boundaryMargin = EdgeInsets.zero, bool constrained = true, bool panEnabled = true, bool scaleEnabled = true, double maxScale = 2.0, double minScale = 0.8, GestureScaleEndCallback? onInteractionEnd, GestureScaleStartCallback? onInteractionStart, GestureScaleUpdateCallback? onInteractionUpdate, TransformationController? transformationController, GestureTapDownCallback? onDoubleTapDown})
-
It is very similar to the InteractiveViewer except the AnimatedInteractiveViewer
have a double-tap animated zoom
const
Properties
- 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 InteractiveViewer,
but it will not receive gestures in these areas.
Be sure that the InteractiveViewer 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
- curve → Curve
-
It is the curve that the SwipeTransition performs
final
- duration → Duration
-
The length of time than the double-tap zoom
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
- onDoubleTapDown → GestureTapDownCallback?
-
A pointer that might cause a double tap has contacted the screen at a
particular location.
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
- panAxis → PanAxis
-
When set to PanAxis.aligned, panning is only allowed in the horizontal
axis or the vertical axis, diagonal panning is not allowed.
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(
) → _AnimatedInteractiveViewerState -
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