ArcaneHoverCard class

A unified floating content component.

Replaces the separate Tooltip, Popover, and Hovercard components with a single flexible component that handles all floating content patterns:

  • Tooltip mode: Simple text hint on hover
  • Popover mode: Rich content panel on click
  • Hovercard mode: Content shown after the configured hover delays

Use the named constructors for common patterns or the default constructor for full control.

Inheritance

Constructors

ArcaneHoverCard({String? id, required Widget trigger, Widget? content, String? textContent, FloatingTrigger triggerType = FloatingTrigger.hover, FloatingPosition position = FloatingPosition.top, bool? isOpen, void onOpenChange(bool isOpen)?, bool showArrow = true, int offset = 8, int openDelay = 0, int closeDelay = 0, double? maxWidth, bool closeOnOutsideClick = true, bool closeOnEscape = true, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
const
ArcaneHoverCard.hovercard({String? id, required Widget trigger, required Widget content, FloatingPosition position = FloatingPosition.top, bool showArrow = true, int offset = 8, int openDelay = 200, int closeDelay = 300, bool? isOpen, void onOpenChange(bool isOpen)?, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
Creates a hover-triggered card with configurable delays.
const
ArcaneHoverCard.popover({String? id, required Widget trigger, required Widget content, FloatingPosition position = FloatingPosition.bottom, bool? isOpen, void onOpenChange(bool isOpen)?, bool showArrow = true, int offset = 8, bool closeOnOutsideClick = true, bool closeOnEscape = true, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
Creates a click-triggered popover with rich content.
const
ArcaneHoverCard.tooltip({String? id, required Widget child, required String textContent, FloatingPosition position = FloatingPosition.top, double? maxWidth = 250, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
Creates a simple text tooltip that appears on hover.
const
ArcaneHoverCard.tooltipCustom({String? id, required Widget child, required Widget content, FloatingPosition position = FloatingPosition.top, double? maxWidth, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
Creates a tooltip with custom component content.
const

Properties

closeDelay → int
final
closeOnEscape → bool
final
closeOnOutsideClick → bool
final
content → Widget?
final
decoration → ArcaneDecoration?
Semantic, theme-interpreted decoration (elevation + theme-specific fields).
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
final
isOpen → bool?
final
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
maxWidth → double?
final
offset → int
final
onOpenChange → void Function(bool isOpen)?
final
openDelay → int
final
position → FloatingPosition
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showArrow → bool
final
styles → ArcaneStyleData?
Literal, theme-permeable style override (always applied, wins over theme).
final
textContent → String?
final
trigger → Widget
final
triggerType → FloatingTrigger
final

Methods

createElement() → Element
Creates a StatefulElement to manage this component's location in the tree.
inherited
createState() → State<ArcaneHoverCard>
Creates the mutable state for this component at a given location in the tree.
override
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