Zoom constructor

const Zoom({
  1. Key? key,
  2. required Widget child,
  3. void onZoomChange(
    1. ZoomTransform transform
    )?,
  4. void onZoomStart(
    1. ZoomTransform transform
    )?,
  5. void onZoomEnd(
    1. ZoomTransform transform
    )?,
  6. ZoomTransform? initialTransform,
  7. double minScale = 0.1,
  8. double maxScale = 10.0,
  9. bool panEnabled = true,
  10. bool zoomEnabled = true,
  11. bool doubleTapZoomEnabled = true,
  12. double doubleTapZoomScale = 2.0,
  13. bool wheelZoomEnabled = true,
  14. double wheelZoomFactor = 0.1,
  15. bool constrainPan = false,
  16. 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,
});