InteractiveScrollViewer constructor
const
InteractiveScrollViewer(
- Widget child, {
- Key? key,
- Clip clipBehavior = Clip.hardEdge,
- _DoubleTapZoomInvokedCallback? onDoubleTapZoomInvoked,
- bool alignPanAxis = false,
- EdgeInsets boundaryMargin = EdgeInsets.zero,
- double maxScale = 3,
- double minScale = 1,
- GestureScaleStartCallback? onInteractionStart,
- GestureScaleUpdateCallback? onInteractionUpdate,
- GestureScaleEndCallback? onInteractionEnd,
- bool panEnabled = true,
- bool scaleEnabled = true,
- bool constrained = true,
- bool enableDoubleTapZooming = true,
- TransformationController? transformationController,
Constructor for InteractiveScrollable.
Implementation
const InteractiveScrollViewer(this.child,
{Key? key,
this.clipBehavior = Clip.hardEdge,
this.onDoubleTapZoomInvoked,
this.alignPanAxis = false,
this.boundaryMargin = EdgeInsets.zero,
// These default scale values were eyeballed as reasonable
//limits for common use cases.
this.maxScale = 3,
this.minScale = 1,
this.onInteractionStart,
this.onInteractionUpdate,
this.onInteractionEnd,
this.panEnabled = true,
this.scaleEnabled = true,
this.constrained = true,
this.enableDoubleTapZooming = true,
this.transformationController})
: super(key: key);