InteractiveScrollViewer constructor

const InteractiveScrollViewer(
  1. Widget child, {
  2. Key? key,
  3. Clip clipBehavior = Clip.hardEdge,
  4. _DoubleTapZoomInvokedCallback? onDoubleTapZoomInvoked,
  5. PanAxis panAxis = PanAxis.free,
  6. EdgeInsets boundaryMargin = EdgeInsets.zero,
  7. double maxScale = 3,
  8. double minScale = 1,
  9. GestureScaleStartCallback? onInteractionStart,
  10. GestureScaleUpdateCallback? onInteractionUpdate,
  11. GestureScaleEndCallback? onInteractionEnd,
  12. bool panEnabled = true,
  13. bool scaleEnabled = true,
  14. bool constrained = true,
  15. bool enableDoubleTapZooming = true,
  16. TransformationController? transformationController,
})

Constructor for InteractiveScrollable.

Implementation

const InteractiveScrollViewer(this.child,
    {Key? key,
    this.clipBehavior = Clip.hardEdge,
    this.onDoubleTapZoomInvoked,
    this.panAxis = PanAxis.free,
    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);