PinchZoomReleaseUnzoomWidget class
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