CustomZoomableWidget constructor

CustomZoomableWidget({
  1. Key? key,
  2. double minScale = 0.7,
  3. double maxScale = 1.4,
  4. double initialScale = 1.0,
  5. Offset initialOffset = Offset.zero,
  6. double initialRotation = 0.0,
  7. bool enableZoom = true,
  8. double panLimit = 1.0,
  9. bool singleFingerPan = true,
  10. bool multiFingersPan = true,
  11. bool enableRotate = false,
  12. Widget? child,
  13. VoidCallback? onTap,
  14. int zoomSteps = 0,
  15. bool autoCenter = false,
  16. bool bounceBackBoundary = true,
  17. bool enableFling = true,
  18. double flingFactor = 1.0,
  19. ValueChanged<double>? onZoomChanged,
  20. Duration resetDuration = const Duration(milliseconds: 250),
  21. Curve resetCurve = Curves.easeInOut,
})

Implementation

CustomZoomableWidget({
  Key? key,
  this.minScale: 0.7,
  this.maxScale: 1.4,
  this.initialScale: 1.0,
  this.initialOffset: Offset.zero,
  this.initialRotation: 0.0,
  this.enableZoom: true,
  this.panLimit: 1.0,
  this.singleFingerPan: true,
  this.multiFingersPan: true,
  this.enableRotate: false,
  this.child,
  this.onTap,
  this.zoomSteps: 0,
  this.autoCenter: false,
  this.bounceBackBoundary: true,
  this.enableFling: true,
  this.flingFactor: 1.0,
  this.onZoomChanged,
  this.resetDuration: const Duration(milliseconds: 250),
  this.resetCurve: Curves.easeInOut,
});