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?
final
builder → Widget Function(BuildContext context, UArProjection projection)
final
hashCode → int
The hash code for this object.
no setterinherited
hideWhenOffscreen → bool
final
id → String
final
maxDistance → double?
final
maxScale → double
final
minScale → double
final
nodeId → String?
final
offset → UArVector3
Local to the node / anchor, or a world point when neither is set.
final
onTap → VoidCallback?
final
referenceDistance → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleWithDistance → bool
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