PinchZoomReleaseUnzoomWidget constructor
const
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
- child is the widget used for zooming. This parameter is required because without a child there is nothing to zoom on
Implementation
const PinchZoomReleaseUnzoomWidget({
required this.child,
this.zoomChild,
this.resetDuration = defaultResetDuration,
this.resetCurve = Curves.ease,
this.boundaryMargin = EdgeInsets.zero,
this.clipBehavior = Clip.none,
this.minScale = 0.8,
this.maxScale = 8,
this.useOverlay = true,
this.rootOverlay = false,
this.maxOverlayOpacity = 0.5,
this.overlayColor = Colors.black,
this.fingersRequiredToPinch = 2,
this.twoFingersOn,
this.twoFingersOff,
this.log = false,
super.key,
}) : assert(minScale > 0),
assert(maxScale > 0),
assert(maxScale >= minScale);