TooltipConfiguration<T> class

OverlayConfiguration that presents its content as a tooltip via the ambient OverlayManager.

adaptiveConversion returns the configuration unchanged. The tooltipHandler that OverlayManager injects under ShadcnLayer already picks a fixed tooltip implementation appropriate for mobile.

Inheritance

Constructors

TooltipConfiguration({required WidgetBuilder builder, AlignmentGeometry alignment = Alignment.center, Offset? position, AlignmentGeometry? anchorAlignment, Offset? offset, bool follow = true, Key? key})
Creates a TooltipConfiguration.
const

Properties

alignment AlignmentGeometry
Tooltip alignment relative to the anchor.
final
anchorAlignment AlignmentGeometry?
Anchor alignment point.
final
builder WidgetBuilder
Builds the tooltip content.
final
follow bool
Whether the tooltip follows the anchor if it moves.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Widget key for the tooltip overlay.
final
offset Offset?
Additional position offset.
final
position Offset?
Explicit position, overrides alignment if provided.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

adaptiveConversion(BuildContext context) OverlayConfiguration<T>
Returns an equivalent configuration adapted for the current platform, e.g. a PopoverConfiguration becomes a DrawerConfiguration on mobile.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(BuildContext context) OverlayCompleter<T?>
Actually presents the overlay using this configuration's mechanism.
override
toString() String
A string representation of this object.
inherited

Operators

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