InteractiveViewerModifier constructor

const InteractiveViewerModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. Clip clipBehavior = Clip.hardEdge,
  5. bool alignPanAxis = false,
  6. EdgeInsets boundaryMargin = EdgeInsets.zero,
  7. bool constrained = true,
  8. double maxScale = 2.5,
  9. double minScale = 0.8,
  10. GestureScaleEndCallback? onInteractionEnd,
  11. GestureScaleStartCallback? onInteractionStart,
  12. GestureScaleUpdateCallback? onInteractionUpdate,
  13. bool panEnabled = true,
  14. bool scaleEnabled = true,
  15. double scaleFactor = 200.0,
  16. 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;