NodeTooltipTheme<T> class

Theme data for tooltip styling in FolderView nodes.

Tooltips are classified as chrome rather than content, and are deliberately excluded from FlutterFolderViewTheme.scale — see ADR-0004. This class therefore exposes no scale method; attempting to call one is a compile error.

Annotations

Constructors

NodeTooltipTheme({bool useTooltip = false, TooltipDirection direction = TooltipDirection.top, TooltipAlignment alignment = TooltipAlignment.center, TooltipAnchor anchor = TooltipAnchor.child, double offset = 8.0, double crossAxisOffset = 0.0, String? message, TextStyle? textStyle, WidgetBuilder? tooltipBuilder, WidgetBuilder? tooltipBuilderResolver(Node<T> node)?, Color? backgroundColor, double? elevation, List<BoxShadow>? boxShadow, BorderRadius? borderRadius, EdgeInsets? padding, JustTooltipController? controller, bool? enableTap, bool? enableHover, Duration? animationDuration, VoidCallback? onShow, VoidCallback? onHide, bool? interactive, Duration? waitDuration, Duration? showDuration, Color? borderColor, double? borderWidth, bool? showArrow, double? arrowBaseWidth, double? arrowLength, double? arrowPositionRatio, double? screenMargin, TooltipAnimation? animation, Curve? animationCurve, double? fadeBegin, double? scaleBegin, double? slideOffset, double? rotationBegin, bool? hideOnEmptyMessage})
Creates a NodeTooltipTheme
const

Properties

alignment → TooltipAlignment
Alignment of the tooltip relative to the anchor (start, center, end)
final
anchor → TooltipAnchor
What the tooltip is anchored to: the child's rect, or the pointer.
final
animation → TooltipAnimation?
Animation type for tooltip show/hide
final
animationCurve → Curve?
Custom curve for the tooltip animation
final
animationDuration → Duration?
Animation duration for tooltip show/hide
final
arrowBaseWidth → double?
Base width of the arrow
final
arrowLength → double?
Length of the arrow
final
arrowPositionRatio → double?
Position ratio of the arrow (0.0 to 1.0)
final
backgroundColor → Color?
Background color for tooltip
final
borderColor → Color?
Border color for tooltip
final
borderRadius → BorderRadius?
Border radius for tooltip
final
borderWidth → double?
Border width for tooltip
final
boxShadow → List<BoxShadow>?
Custom box shadow for tooltip (overrides elevation)
final
controller → JustTooltipController?
Controller for programmatic tooltip control
final
crossAxisOffset → double
Additional offset along the cross-axis of direction
final
direction → TooltipDirection
Direction of the tooltip (top, bottom, left, right)
final
elevation → double?
Elevation (shadow depth) for tooltip
final
enableHover → bool?
Whether hover triggers the tooltip
final
enableTap → bool?
Whether tap triggers the tooltip
final
fadeBegin → double?
Starting opacity for fade-based animations (0.0 to 1.0)
final
hashCode → int
The hash code for this object.
no setterinherited
hideOnEmptyMessage → bool?
Whether to suppress tooltip when message is empty (default: true)
final
interactive → bool?
Whether the tooltip stays visible when hovering over the tooltip itself
final
message → String?
Static tooltip message
final
offset → double
Offset from the widget
final
onHide → VoidCallback?
Callback when tooltip is hidden
final
onShow → VoidCallback?
Callback when tooltip is shown
final
padding → EdgeInsets?
Padding inside the tooltip
final
rotationBegin → double?
Starting rotation in turns for rotation animation
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scaleBegin → double?
Starting scale for scale-based animations
final
screenMargin → double?
Minimum margin from screen edges
final
showArrow → bool?
Whether to show an arrow on the tooltip
final
showDuration → Duration?
Duration after which the tooltip auto-hides (resets on re-enter)
final
slideOffset → double?
Slide distance as a fraction of tooltip size
final
textStyle → TextStyle?
Text style for tooltip message
final
tooltipBuilder → WidgetBuilder?
Custom widget builder for tooltip content
final
tooltipBuilderResolver → WidgetBuilder? Function(Node<T> node)?
Resolver function to dynamically determine tooltip widget based on node data If returns null, falls back to tooltipBuilder
final
useTooltip → bool
Whether to use tooltip for this node type
final
waitDuration → Duration?
Duration to wait before showing the tooltip on hover
final

Methods

copyWith({bool? useTooltip, TooltipDirection? direction, TooltipAlignment? alignment, TooltipAnchor? anchor, double? offset, double? crossAxisOffset, String? message, TextStyle? textStyle, WidgetBuilder? tooltipBuilder, WidgetBuilder? tooltipBuilderResolver(Node<T> node)?, Color? backgroundColor, double? elevation, List<BoxShadow>? boxShadow, BorderRadius? borderRadius, EdgeInsets? padding, JustTooltipController? controller, bool? enableTap, bool? enableHover, Duration? animationDuration, VoidCallback? onShow, VoidCallback? onHide, bool? interactive, Duration? waitDuration, Duration? showDuration, Color? borderColor, double? borderWidth, bool? showArrow, double? arrowBaseWidth, double? arrowLength, double? arrowPositionRatio, double? screenMargin, TooltipAnimation? animation, Curve? animationCurve, double? fadeBegin, double? scaleBegin, double? slideOffset, double? rotationBegin, bool? hideOnEmptyMessage}) → NodeTooltipTheme<T>
Creates a copy of this theme with the given fields replaced with new values
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<T>(NodeTooltipTheme<T>? a, NodeTooltipTheme<T>? b, double t) → NodeTooltipTheme<T>
Linearly interpolate between two NodeTooltipThemes