HoverCardTheme class
Theme configuration for hover card behavior and appearance.
Defines timing, positioning, and interaction behavior for hover cards, providing consistent styling across the application.
Example:
ComponentThemeData(
data: {
HoverCardTheme: HoverCardTheme(
debounce: Duration(milliseconds: 300),
wait: Duration(milliseconds: 700),
popoverAlignment: Alignment.topCenter,
),
},
child: MyApp(),
)
Constructors
- HoverCardTheme({Duration? debounce, Duration? wait, AlignmentGeometry? popoverAlignment, AlignmentGeometry? anchorAlignment, Offset? popoverOffset, HitTestBehavior? behavior})
-
Creates a HoverCardTheme.
const
Properties
- anchorAlignment → AlignmentGeometry?
-
Alignment point on the anchor widget.
final
- behavior → HitTestBehavior?
-
Hit test behavior for mouse interactions.
final
- debounce → Duration?
-
Duration to wait before hiding the hover card after mouse exit.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- popoverAlignment → AlignmentGeometry?
-
Alignment of the popover relative to its anchor.
final
- popoverOffset → Offset?
-
Offset of the popover from its calculated position.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wait → Duration?
-
Duration to wait before showing the hover card after mouse enter.
final
Methods
-
copyWith(
{ValueGetter< Duration?> ? debounce, ValueGetter<Duration?> ? wait, ValueGetter<AlignmentGeometry?> ? popoverAlignment, ValueGetter<AlignmentGeometry?> ? anchorAlignment, ValueGetter<Offset?> ? popoverOffset, ValueGetter<HitTestBehavior?> ? behavior}) → HoverCardTheme -
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.
override