AnimatedInteractiveViewer constructor
const
AnimatedInteractiveViewer({
- Key? key,
- required Widget child,
- Curve curve = Curves.ease,
- Duration duration = const Duration(milliseconds: 200),
- Clip clipBehavior = Clip.none,
- PanAxis panAxis = PanAxis.free,
- EdgeInsets boundaryMargin = EdgeInsets.zero,
- bool constrained = true,
- bool panEnabled = true,
- bool scaleEnabled = true,
- double maxScale = 2.0,
- double minScale = 0.8,
- GestureScaleEndCallback? onInteractionEnd,
- GestureScaleStartCallback? onInteractionStart,
- GestureScaleUpdateCallback? onInteractionUpdate,
- TransformationController? transformationController,
- GestureTapDownCallback? onDoubleTapDown,
It is very similar to the InteractiveViewer except the AnimatedInteractiveViewer have a double-tap animated zoom
Implementation
const AnimatedInteractiveViewer({
Key? key,
required this.child,
this.curve = Curves.ease,
this.duration = const Duration(milliseconds: 200),
this.clipBehavior = Clip.none,
this.panAxis = PanAxis.free,
this.boundaryMargin = EdgeInsets.zero,
this.constrained = true,
this.panEnabled = true,
this.scaleEnabled = true,
this.maxScale = 2.0,
this.minScale = 0.8,
this.onInteractionEnd,
this.onInteractionStart,
this.onInteractionUpdate,
this.transformationController,
this.onDoubleTapDown,
}) : super(key: key);