CustomInteractiveViewer constructor
const
CustomInteractiveViewer({
- Key? key,
- required Widget child,
- double minScale = 0.1,
- double maxScale = 4.0,
- double initialScale = 1.0,
- EdgeInsets boundaryMargin = EdgeInsets.zero,
- bool constrained = true,
- CustomInteractiveViewerController? controller,
- dynamic onPointerDown()?,
- dynamic onPointerMove()?,
- dynamic onPointerUp()?,
- dynamic onPointerHover()?,
- dynamic onPointerCancel()?,
- dynamic onPointerPanZoomStart()?,
- dynamic onPointerPanZoomUpdate()?,
- dynamic onPointerPanZoomEnd()?,
- dynamic onPointerSignal()?,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
Implementation
const CustomInteractiveViewer({
super.key,
required this.child,
this.minScale = 0.1,
this.maxScale = 4.0,
this.initialScale = 1.0,
this.boundaryMargin = EdgeInsets.zero,
this.constrained = true,
this.controller,
this.onPointerDown,
this.onPointerMove,
this.onPointerUp,
this.onPointerHover,
this.onPointerCancel,
this.onPointerPanZoomStart,
this.onPointerPanZoomUpdate,
this.onPointerPanZoomEnd,
this.onPointerSignal,
this.behavior = HitTestBehavior.deferToChild,
});