UArOverlay class

A Flutter widget pinned to a node, an anchor or a world point.

Constructors

UArOverlay({required String id, required Widget builder(BuildContext context, UArProjection projection), String? nodeId, String? anchorId, UArVector3 offset = UArVector3.zero, Alignment alignment = Alignment.bottomCenter, bool scaleWithDistance = true, double referenceDistance = 1.5, double minScale = 0.45, double maxScale = 1.25, double? maxDistance, bool hideWhenOffscreen = true, VoidCallback? onTap})
const

Properties

alignment → Alignment
Which point of the widget sits on the tracked point.
final
anchorId → String?
AR anchor the widget follows.
final
builder → Widget Function(BuildContext context, UArProjection projection)
Builds the content.
final
hashCode → int
The hash code for this object.
no setterinherited
hideWhenOffscreen → bool
Hides the widget when its point is off screen.
final
id → String
Unique id.
final
maxDistance → double?
Hides the widget beyond this distance (m).
final
maxScale → double
Largest zoom.
final
minScale → double
Smallest zoom.
final
nodeId → String?
3D node the widget follows.
final
offset → UArVector3
Local to the node / anchor, or a world point when neither is set.
final
onTap → VoidCallback?
Called when tapped.
final
referenceDistance → double
Distance (m) at which the widget has its normal size.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleWithDistance → bool
Shrinks the widget as it gets farther away.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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