BetterInteractiveViewer class abstract
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BetterInteractiveViewerBase
- BetterInteractiveViewer
- Implementers
Constructors
- 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})
Properties
- allowNonCoveringScreenZoom → bool
-
Allows the user to zoom out the child so that it is displayed smaller than the viewports width and height.
finalinherited
- clipBehavior → Clip
-
How to clip the content.
final
- doubleTapToZoom → bool
-
Allows the user to zoom by double tapping.
finalinherited
- doubleTapZoomOutBehaviour → DoubleTapZoomOutBehaviour
-
What should happen when the user double taps to zoom out.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactionEndFrictionCoefficient → double
-
Changes the deceleration behavior after a gesture.
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxScale → double
-
The maximum allowed scale.
finalinherited
- minScale → double
-
The minimum allowed scale.
finalinherited
- noMouseDragScroll → bool
-
When true, disables drag scrolling with the mouse.
Only mouse wheel zooming, and when enabled scrollbar zooming, is allowed then.
finalinherited
- nonCoveringZoomAlignmentHorizontal → HorizontalNonCoveringZoomAlign
-
The horizontal alignment of the non-covering zoom.
Non covering zoom is the zoom that happens when the child is smaller than the viewport.
final
- nonCoveringZoomAlignmentVertical → VerticalNonCoveringZoomAlign
-
The vertical alignment of the non-covering zoom.
Non covering zoom is the zoom that happens when the child is smaller than the viewport.
final
- panAxis → PanAxis
-
When set to PanAxis.aligned, panning is only allowed in the horizontal
axis or the vertical axis, diagonal panning is not allowed.
finalinherited
- panEnabled → bool
-
If false, the user will be prevented from panning.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleEnabled → bool
-
If false, the user will be prevented from scaling.
finalinherited
- scaleFactor → double
-
Determines the amount of scale to be performed per pointer scroll.
finalinherited
- showScrollbars → bool
-
Whether to show scrollbars.
finalinherited
- transformationController → TransformationController?
-
A TransformationController for the transformation performed on the
child.
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → BetterInteractiveViewerState< BetterInteractiveViewer> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited