RowTooltipTheme class
Presentation and behaviour for the row card raised by
FolderView.rowTooltipBuilder.
Distinct from NodeTooltipTheme, which styles a Tier's label tooltip.
The two describe different things (see FolderView.rowTooltipBuilder) and
deliberately do not share fields — see ADR-0005.
Two of the underlying tooltip's knobs are not exposed, because the row card fixes them:
- the anchor is always the pointer. A row is laid out at the tree's content width, so anchoring to the row's rect would aim at a centre that leaves the screen as soon as the view scrolls horizontally.
- the content comes from
rowTooltipBuilder, so there is nomessageor builder here.
Everything else, including the surface, is yours. The surface defaults to nothing at all — no background, padding, elevation, border, or arrow — because a card draws its own. Set surface to let the tooltip draw chrome instead, for a builder that returns bare content.
Tooltips are chrome and excluded from FlutterFolderViewTheme.scale
(ADR-0004). This class therefore exposes no scale method.
- Annotations
Constructors
- RowTooltipTheme({TooltipDirection direction = TooltipDirection.top, TooltipAlignment alignment = TooltipAlignment.center, double offset = 8.0, double crossAxisOffset = 0.0, double screenMargin = 8.0, JustTooltipTheme surface = const JustTooltipTheme.bare(), bool interactive = true, Duration? waitDuration, Duration? showDuration, bool enableHover = true, TooltipAnimation animation = TooltipAnimation.fade, Curve? animationCurve, Duration animationDuration = const Duration(milliseconds: 150), double fadeBegin = 0.0, double scaleBegin = 0.0, double slideOffset = 0.3, double rotationBegin = -0.05, VoidCallback? onShow, VoidCallback? onHide})
-
const
Properties
- alignment → TooltipAlignment
-
Against a point there are no target edges to align to, so this selects
which of the card's own edges lands on the pointer.
final
- animation → TooltipAnimation
-
final
- animationCurve → Curve?
-
final
- animationDuration → Duration
-
final
- crossAxisOffset → double
-
Additional offset along the cross-axis of direction.
final
- direction → TooltipDirection
-
Which side of the pointer the card is placed on. Flips automatically when
there is no room.
final
- enableHover → bool
-
Whether hovering a row raises the card at all.
final
- fadeBegin → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactive → bool
-
Whether the card stays visible when the cursor moves onto it.
final
- offset → double
-
Distance between the pointer and the card.
final
- onHide → VoidCallback?
-
final
- onShow → VoidCallback?
-
Called when a card is shown / hidden.
final
- rotationBegin → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleBegin → double
-
final
- screenMargin → double
-
Minimum distance the card keeps from the enclosing
Overlay's edges.final - showDuration → Duration?
-
How long the card stays before hiding itself. Null keeps it while hovered.
final
- slideOffset → double
-
final
- surface → JustTooltipTheme
-
The tooltip's own surface. Defaults to JustTooltipTheme.bare — nothing
drawn — because a card supplies its own. Give it a real
JustTooltipTheme when
rowTooltipBuilderreturns unadorned content.final - waitDuration → Duration?
-
Delay before the card appears on hover. Null shows it immediately.
final
Methods
-
copyWith(
{TooltipDirection? direction, TooltipAlignment? alignment, double? offset, double? crossAxisOffset, double? screenMargin, JustTooltipTheme? surface, bool? interactive, Duration? waitDuration, Duration? showDuration, bool? enableHover, TooltipAnimation? animation, Curve? animationCurve, Duration? animationDuration, double? fadeBegin, double? scaleBegin, double? slideOffset, double? rotationBegin, VoidCallback? onShow, VoidCallback? onHide}) → RowTooltipTheme -
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
Static Methods
-
lerp(
RowTooltipTheme? a, RowTooltipTheme? b, double t) → RowTooltipTheme - Linearly interpolate between two RowTooltipThemes.