Zoom class
- Inheritance
- Annotations
Constructors
- Zoom({Color backgroundColor = Colors.grey, Color canvasColor = Colors.white, bool centerOnScale = true, required Widget child, Color colorScrollBars = Colors.black12, Duration doubleTapAnimDuration = const Duration(milliseconds: 300), double doubleTapScaleChange = 1.1, bool doubleTapZoom = true, bool enableScroll = true, Offset? initPosition, double? initScale, bool initTotalZoomOut = false, Key? key, double maxScale = 2.5, double? maxZoomHeight, double? maxZoomWidth, dynamic onPositionUpdate(Offset)?, dynamic onScaleUpdate(double, double)?, dynamic onPanUpPosition(Offset)?, dynamic onMinZoom(bool)?, dynamic onTap()?, double opacityScrollBars = 0.5, double radiusScrollBars = 4, double scrollWeight = 10, TransformationController? transformationController, double zoomSensibility = 1.0})
Properties
- backgroundColor → Color
-
final
- canvasColor → Color
-
final
- centerOnScale → bool
-
final
- child → Widget
-
final
- colorScrollBars → Color
-
final
- doubleTapAnimDuration → Duration
-
final
- doubleTapScaleChange → double
-
final
- doubleTapZoom → bool
-
final
- enableScroll → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initPosition → Offset?
-
final
- initScale → double?
-
final
- initTotalZoomOut → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxScale → double
-
final
- maxZoomHeight → double?
-
final
- maxZoomWidth → double?
-
final
- onMinZoom → (dynamic Function(bool)?)
-
final
- onPanUpPosition → (dynamic Function(Offset)?)
-
final
- onPositionUpdate → (dynamic Function(Offset)?)
-
final
- onScaleUpdate → (dynamic Function(double, double)?)
-
final
- onTap → (dynamic Function()?)
-
final
- opacityScrollBars → double
-
final
- radiusScrollBars → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollWeight → double
-
final
- transformationController → TransformationController?
-
final
- zoomSensibility → double
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< Zoom> -
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}) → 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
Static Methods
-
getAxisAlignedBoundingBox(
Quad quad) → Quad -
getNearestPointInside(
Vector3 point, Quad quad) → Vector3 -
getNearestPointOnLine(
Vector3 point, Vector3 l1, Vector3 l2) → Vector3 -
pointIsInside(
Vector3 point, Quad quad) → bool