PinchZoomReleaseUnzoomWidget class

Inheritance

Constructors

PinchZoomReleaseUnzoomWidget({required Widget child, Widget? zoomChild, Duration resetDuration = defaultResetDuration, Curve resetCurve = Curves.ease, EdgeInsets boundaryMargin = EdgeInsets.zero, Clip clipBehavior = Clip.none, double minScale = 0.8, double maxScale = 8, bool useOverlay = true, bool rootOverlay = false, double maxOverlayOpacity = 0.5, Color overlayColor = Colors.black, int fingersRequiredToPinch = 2, void twoFingersOn()?, void twoFingersOff()?, bool log = false, Key? key})
Create an PinchZoomReleaseUnzoomWidget, remeber that is just a little bit of customization over an interactive viewer
const

Properties

boundaryMargin EdgeInsets
The boundary margin of the interactive viewer, this can be used to give margin in the bottom in case you want the user to zoom out
final
child Widget
Widget where the pinch will be done
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
fingersRequiredToPinch int
Fingers required to start a pinch, if it's zero or below zero no validation will be performed
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
log bool
Log what's happening
final
maxOverlayOpacity double
The max opacity of the overlay when users zooms in
final
maxScale double
The maximum allowed scale.
final
minScale double
The minimum allowed scale.
final
overlayColor Color
Overlay color
final
resetCurve Curve
The curve of the reset animation
final
resetDuration Duration
The duration of the reset animation
final
rootOverlay bool
If rootOverlay is set to true, the state from the furthest instance of this class is given instead. Useful for installing overlay entries above all subsequent instances of Overlay.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
twoFingersOff → (void Function()?)
Function to unblock scroll again
final
twoFingersOn → (void Function()?)
This function is super useful to block scroll and make the pinch to zoom easier
final
useOverlay bool
If it's true will create a new widget to zoom, to occupy the entire screen
final
zoomChild Widget?
If you set a zoomChild, the zoom will be done in this widget, this can be useful if you have an animation in the child widget, and want to zoom only in the last frame of that animation
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<PinchZoomReleaseUnzoomWidget>
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

Constants

defaultResetDuration → const Duration