ChartPanZoomScope constructor
const
ChartPanZoomScope({
- Key? key,
- required Widget child,
- double minScale = 1.0,
- double maxScale = 5.0,
- PanAxis panAxis = PanAxis.free,
- EdgeInsets boundaryMargin = EdgeInsets.zero,
- bool constrained = true,
- TransformationController? controller,
- bool showControls = false,
- AlignmentGeometry controlsAlignment = Alignment.bottomRight,
- EdgeInsetsGeometry controlsPadding = const EdgeInsets.all(8),
- double zoomStep = 1.5,
- bool hapticFeedback = true,
- ValueChanged<
ScaleStartDetails> ? onInteractionStart, - ValueChanged<
ScaleEndDetails> ? onInteractionEnd,
Implementation
const ChartPanZoomScope({
super.key,
required this.child,
this.minScale = 1.0,
this.maxScale = 5.0,
this.panAxis = PanAxis.free,
this.boundaryMargin = EdgeInsets.zero,
this.constrained = true,
this.controller,
this.showControls = false,
this.controlsAlignment = Alignment.bottomRight,
this.controlsPadding = const EdgeInsets.all(8),
this.zoomStep = 1.5,
this.hapticFeedback = true,
this.onInteractionStart,
this.onInteractionEnd,
}) : assert(minScale > 0, 'minScale must be > 0'),
assert(maxScale >= minScale, 'maxScale must be >= minScale'),
assert(zoomStep > 1.0, 'zoomStep must be > 1.0');