TooltipConfiguration class

OverlayConfiguration that presents its content as a tooltip.

Presents as a real popover (modal: false) on desktop platforms and as a simplified, non-follow, fixed-position overlay on mobile platforms (matching the historical FixedTooltipOverlayHandler-as-tooltip-handler default under ShadcnLayer). adaptiveConversion stays the inherited identity conversion — a tooltip should never become a bottom drawer.

Inheritance

Constructors

TooltipConfiguration({Anchor? anchor, AlignmentGeometry alignment = Alignment.center, Offset? position, AlignmentGeometry? anchorAlignment, Offset? offset, bool follow = true, Key? key, Duration? showDuration, Duration? dismissDuration})
Creates a TooltipConfiguration.
const

Properties

alignment → AlignmentGeometry
Tooltip alignment relative to the anchor.
final
anchor → Anchor?
The Anchor to resolve against, if using anchor-based positioning instead of the BuildContext passed to show.
final
anchorAlignment → AlignmentGeometry?
Anchor alignment point.
final
dismissDuration → Duration?
Dismiss animation duration. Defaults to 100ms.
final
follow → bool
Whether the tooltip follows the anchor if it moves. Only honored on desktop platforms — the mobile presentation never follows.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Widget key for the tooltip overlay.
final
nonAdaptive → OverlayConfiguration
A configuration-level alternative to passing adaptive: false at every call site: a copy of this configuration whose adaptiveConversion is a no-op, regardless of the adaptive/adaptiveOverlay flag passed where it's shown.
no setterinherited
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
showDuration → Duration?
Show animation duration. Defaults to kDefaultDuration.
final

Methods

adaptiveConversion(BuildContext context) → OverlayConfiguration
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<T>(BuildContext context, WidgetBuilder builder) → OverlayCompleter<T?>
Actually presents the overlay using this configuration's mechanism, with builder as its content.
override
toString() → String
A string representation of this object.
inherited

Operators

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