Zoom constructor
const
Zoom({
- Key? key,
- required Widget child,
- void onZoomChange(
- ZoomTransform transform
- void onZoomStart(
- ZoomTransform transform
- void onZoomEnd(
- ZoomTransform transform
- ZoomTransform? initialTransform,
- double minScale = 0.1,
- double maxScale = 10.0,
- bool panEnabled = true,
- bool zoomEnabled = true,
- bool doubleTapZoomEnabled = true,
- double doubleTapZoomScale = 2.0,
- bool wheelZoomEnabled = true,
- double wheelZoomFactor = 0.1,
- bool constrainPan = false,
- Rect? panBounds,
Creates a Zoom widget.
Implementation
const Zoom({
super.key,
required this.child,
this.onZoomChange,
this.onZoomStart,
this.onZoomEnd,
this.initialTransform,
this.minScale = 0.1,
this.maxScale = 10.0,
this.panEnabled = true,
this.zoomEnabled = true,
this.doubleTapZoomEnabled = true,
this.doubleTapZoomScale = 2.0,
this.wheelZoomEnabled = true,
this.wheelZoomFactor = 0.1,
this.constrainPan = false,
this.panBounds,
});