InteractiveViewerModifier constructor
const
InteractiveViewerModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- Clip clipBehavior = Clip.hardEdge,
- bool alignPanAxis = false,
- EdgeInsets boundaryMargin = EdgeInsets.zero,
- bool constrained = true,
- double maxScale = 2.5,
- double minScale = 0.8,
- GestureScaleEndCallback? onInteractionEnd,
- GestureScaleStartCallback? onInteractionStart,
- GestureScaleUpdateCallback? onInteractionUpdate,
- bool panEnabled = true,
- bool scaleEnabled = true,
- double scaleFactor = 200.0,
- TransformationController? transformationController,
Create an InteractiveViewer.
The child
parameter must not be null.
Implementation
const InteractiveViewerModifier({
super.key,
super.child,
super.modifierKey,
this.clipBehavior = Clip.hardEdge,
this.alignPanAxis = false,
this.boundaryMargin = EdgeInsets.zero,
this.constrained = true,
this.maxScale = 2.5,
this.minScale = 0.8,
this.onInteractionEnd,
this.onInteractionStart,
this.onInteractionUpdate,
this.panEnabled = true,
this.scaleEnabled = true,
this.scaleFactor = 200.0,
this.transformationController,
}) : builder = null;