BetterInteractiveViewer constructor
BetterInteractiveViewer({
- Key? key,
- bool allowNonCoveringScreenZoom = true,
- PanAxis panAxis = PanAxis.free,
- double maxScale = 2.5,
- double minScale = 0.2,
- double interactionEndFrictionCoefficient = _kDrag,
- bool panEnabled = true,
- bool scaleEnabled = true,
- bool showScrollbars = true,
- bool noMouseDragScroll = true,
- double scaleFactor = kDefaultMouseScrollToScaleFactor,
- bool doubleTapToZoom = true,
- TransformationController? transformationController,
- HorizontalNonCoveringZoomAlign nonCoveringZoomAlignmentHorizontal = HorizontalNonCoveringZoomAlign.middle,
- VerticalNonCoveringZoomAlign nonCoveringZoomAlignmentVertical = VerticalNonCoveringZoomAlign.middle,
- DoubleTapZoomOutBehaviour doubleTapZoomOutBehaviour = DoubleTapZoomOutBehaviour.zoomOutToMinScale,
- 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,
});