BetterInteractiveViewerState<T extends BetterInteractiveViewer> class abstract

Inheritance

Properties

animation Animation<Offset>?
getter/setter pairinherited
childBoundaryRect Rect
The _boundaryRect is calculated by adding the boundaryMargin to the size of the child.
no setterinherited
childKey GlobalKey<State<StatefulWidget>>
finalinherited
context BuildContext
The location in the tree where this widget builds.
no setterinherited
controller AnimationController
getter/setter pairinherited
currentAxis Axis?
getter/setter pairinherited
currentRotation double
getter/setter pairinherited
doubleTabZoomOutScale double
To determine the scale to zoom out to when double tapping
no setterinherited
doubleTapDetails TapDownDetails?
Used for getting position of double tap for zoom in and out
getter/setter pairinherited
doubleTapZoomOutBehaviour DoubleTapZoomOutBehaviour
How to zoom out when double tapping
no setteroverride
gestureType GestureType?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
inNonCoveringZoomHorizontal bool
getter/setter pairinherited
inNonCoveringZoomVertical bool
getter/setter pairinherited
mounted bool
Whether this State object is currently in a tree.
no setterinherited
nonCoveringZoomAlignmentHorizontal HorizontalNonCoveringZoomAlign
How to align the child on non covering zoom for Horizontal axis
no setteroverride
nonCoveringZoomAlignmentVertical VerticalNonCoveringZoomAlign
How to align the child on non covering zoom for Vertical axis
no setteroverride
overrideSize Size?
If not null, overrides the size of the child.
no setter
parentKey GlobalKey<State<StatefulWidget>>
finalinherited
realChildSize Size?
Set this value if the child has a different size than returned by its render box
getter/setter pairinherited-setteroverride-getter
rebuildNotifier RebuildNotifier
Used to notify to rebuild the the transform without rebuilding the child and the listeners.
final
referenceFocalPoint Offset?
getter/setter pairinherited
rotationStart double?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleAnimation Animation<double>?
getter/setter pairinherited
scaleAnimationFocalPoint Offset
getter/setter pairinherited
scaleController AnimationController
getter/setter pairinherited
scaleStart double?
getter/setter pairinherited
scrollbarController ScrollbarControllerEncapsulation?
getter/setter pairinherited
setToAfterAnimate Matrix4?
getter/setter pairinherited
transformationController TransformationController?
getter/setter pairinherited
transformForRender Matrix4
The actual transform you should use for rendering
no setterinherited
widget → T
The current configuration.
no setterinherited
widgetViewport Rect
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
afterAnimate() → void
inherited
afterResize({bool forceUpdate = true}) → void
Cal this method after resize
inherited
afterZoom() → void
Realign the transformation controllers value after a nonCoveringZoom (child is smaller than viewport) to make sure it can be displayed correctly
inherited
animateTo(Matrix4 newMatrix, {Duration duration = const Duration(milliseconds: 150), Curve curve = Curves.linear, bool noTranslation = false, dynamic noZoom = false, Offset? focalPoint}) → void
Automatically animates to a new point
inherited
build(BuildContext context) Widget
Build the Widget. Instead of overriding this function, override buildChild so that all gesture detectors can be set up automatically.
override
buildAroundTransformAndScrollbar(BuildContext context, Widget child) Widget
Gets called every time the transform changes. Can be used to a widget over the scrollbars and the transformed widget, e.g. a indicator for the zoom.
buildChild(BuildContext context) Widget
Builds the child.
override
buildTransformAndScrollbars(BuildContext context, Widget child) Widget
Gets called every time the transform changes. The default implementation returns a ListenableBuilder that listens to the rebuildNotifier and rebuilds the scrollbars and the transform, but not the child.
override
buildUnKeyedChild(BuildContext context) Widget
Gets the child. Child gets wrapped in a KeyedSubtree in buildChild.
createTicker(TickerCallback onTick) Ticker
Creates a ticker with the given callback.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant T oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
gestureIsSupported(GestureType? gestureType, {bool outer = false}) bool
inherited
getGestureType(ScaleUpdateDetails details) GestureType
Decide which type of gesture this is by comparing the amount of scale and rotation in the gesture, if any. Scale starts at 1 and rotation starts at 0. Pan will have no scale and no rotation because it uses only one finger.
inherited
getNonCoveringZoomHorizontalTranslation(double scale) double
Returns the translation to apply when the child is smaller than the viewport horizontally.
inherited
getNonCoveringZoomVerticalTranslation(double scale) double
Returns the translation to apply when the child is smaller than the viewport vertically.
inherited
getScaled({double? scale, Offset? position, Matrix4? matrixZoomedNeedToApplyFocalPointTracking}) Matrix4
inherited
getScrollbarController({required TickerProvider vsync, required TransformScrollbarWidgetInterface controlInterface}) ScrollbarControllerEncapsulation
inherited
handleDoubleTap() → void
inherited
initState() → void
Called when this object is inserted into the tree.
inherited
matrixRotate(Matrix4 matrix, double rotation, Offset focalPoint) Matrix4
Return a new matrix representing the given matrix after applying the given rotation.
inherited
matrixScale(Matrix4 matrix, double scale) Matrix4
inherited
matrixTranslate(Matrix4 matrix, Offset translation) Matrix4
Return a new matrix representing the given matrix after applying the given translation.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAnimate() → void
Handle inertia drag animation.
inherited
onKey(KeyEvent event) bool
Used to check if ctrl or shift for scrolling is pressed
inherited
onScaleAnimate() → void
Handle inertia scale animation.
inherited
onScaleEnd(ScaleEndDetails details, {bool outer = false}) → void
Handle the end of a gesture of _GestureType. All of pan, scale, and rotate are handled with GestureDetector's scale gesture.
inherited
onScaleStart(ScaleStartDetails details) → void
Handle the start of a gesture. All of pan, scale, and rotate are handled with GestureDetector's scale gesture.
inherited
onScaleUpdate(ScaleUpdateDetails details, {bool inner = false}) → void
Handle an update to an ongoing gesture. All of pan, scale, and rotate are handled with GestureDetector's scale gesture.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
receivedPointerSignal(PointerSignalEvent event) → void
Handle mousewheel and web trackpad scroll events.
inherited
resetAnimation() → void
inherited
setScrollbarControllers() → void
Set the scrollbar controllers.
inherited
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
updateTransform() → void
What should happen on transform change.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited