CustomZoomableWidget constructor
CustomZoomableWidget({
- Key? key,
- double minScale = 0.7,
- double maxScale = 1.4,
- double initialScale = 1.0,
- Offset initialOffset = Offset.zero,
- double initialRotation = 0.0,
- bool enableZoom = true,
- double panLimit = 1.0,
- bool singleFingerPan = true,
- bool multiFingersPan = true,
- bool enableRotate = false,
- Widget? child,
- VoidCallback? onTap,
- int zoomSteps = 0,
- bool autoCenter = false,
- bool bounceBackBoundary = true,
- bool enableFling = true,
- double flingFactor = 1.0,
- ValueChanged<
double> ? onZoomChanged, - Duration resetDuration = const Duration(milliseconds: 250),
- 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,
});