GestureConfig class

Constructors

GestureConfig({double minScale = 0.8, double maxScale = 5.0, double speed = 1.0, bool cacheGesture = false, double inertialSpeed = 100.0, double initialScale = 1.0, bool inPageView = false, double? animationMinScale, double? animationMaxScale, InitialAlignment initialAlignment = InitialAlignment.center, GestureDetailsIsChanged? gestureDetailsIsChanged, HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild, bool reverseMousePointerScrollDirection = false})

Properties

animationMaxScale double
The max scale for zooming then animation back to maxScale when scale end
final
animationMinScale double
The min scale for zooming then animation back to minScale when scale end
final
cacheGesture bool
Save Gesture state (for example in page view, so that the state will not change when scroll back), Remember clearGestureDetailsCache at right time
final
gestureDetailsIsChanged GestureDetailsIsChanged?
Call when GestureDetails is changed
final
hashCode int
The hash code for this object.
no setterinherited
hitTestBehavior HitTestBehavior
How to behave during hit tests.
final
inertialSpeed double
final double magnitude = details.velocity.pixelsPerSecond.distance; final Offset direction = details.velocity.pixelsPerSecond / magnitude * _gestureConfig.inertialSpeed;
final
initialAlignment InitialAlignment
Init image rect with alignment when initialScale > 1.0 see https://github.com/fluttercandies/extended_image/issues/66
final
initialScale double
Initial scale of image
final
inPageView bool
Whether in page view
final
maxScale double
Max scale
final
minScale double
final
reverseMousePointerScrollDirection bool
reverse mouse pointer scroll deirection false: zoom int => down, zoom out => up true: zoom int => up, zoom out => down default is false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
Speed for zoom/pan
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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