AnimatedInteractiveViewer constructor

const AnimatedInteractiveViewer({
  1. Key? key,
  2. required Widget child,
  3. Curve curve = Curves.ease,
  4. Duration duration = const Duration(milliseconds: 200),
  5. Clip clipBehavior = Clip.none,
  6. PanAxis panAxis = PanAxis.free,
  7. EdgeInsets boundaryMargin = EdgeInsets.zero,
  8. bool constrained = true,
  9. bool panEnabled = true,
  10. bool scaleEnabled = true,
  11. double maxScale = 2.0,
  12. double minScale = 0.8,
  13. GestureScaleEndCallback? onInteractionEnd,
  14. GestureScaleStartCallback? onInteractionStart,
  15. GestureScaleUpdateCallback? onInteractionUpdate,
  16. TransformationController? transformationController,
  17. 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);