BetterInteractiveViewer constructor

BetterInteractiveViewer({
  1. Key? key,
  2. bool allowNonCoveringScreenZoom = true,
  3. PanAxis panAxis = PanAxis.free,
  4. double maxScale = 2.5,
  5. double minScale = 0.2,
  6. double interactionEndFrictionCoefficient = _kDrag,
  7. bool panEnabled = true,
  8. bool scaleEnabled = true,
  9. bool showScrollbars = true,
  10. bool noMouseDragScroll = true,
  11. double scaleFactor = kDefaultMouseScrollToScaleFactor,
  12. bool doubleTapToZoom = true,
  13. TransformationController? transformationController,
  14. HorizontalNonCoveringZoomAlign nonCoveringZoomAlignmentHorizontal = HorizontalNonCoveringZoomAlign.middle,
  15. VerticalNonCoveringZoomAlign nonCoveringZoomAlignmentVertical = VerticalNonCoveringZoomAlign.middle,
  16. DoubleTapZoomOutBehaviour doubleTapZoomOutBehaviour = DoubleTapZoomOutBehaviour.zoomOutToMinScale,
  17. Clip clipBehavior = Clip.none,
})

Implementation

BetterInteractiveViewer({
  super.key,
  super.allowNonCoveringScreenZoom,
  super.panAxis,
  super.maxScale,
  super.minScale,
  super.interactionEndFrictionCoefficient,
  super.panEnabled,
  super.scaleEnabled,
  super.showScrollbars,
  super.noMouseDragScroll,
  super.scaleFactor,
  super.doubleTapToZoom,
  super.transformationController,
  this.nonCoveringZoomAlignmentHorizontal =
      HorizontalNonCoveringZoomAlign.middle,
  this.nonCoveringZoomAlignmentVertical = VerticalNonCoveringZoomAlign.middle,
  this.doubleTapZoomOutBehaviour =
      DoubleTapZoomOutBehaviour.zoomOutToMinScale,
  this.clipBehavior = Clip.none,
});