TooltipBuilder class

Class that represent builder of tooltip for each item of ActivityCalendar.

To create just one string tooltips use TooltipBuilder.text constructor. If you need to customize part of your tooltip's message, then you should use TooltipBuilder.rich constructor.

Both constructors have almost all arguments that Tooltip can have, so you can customize it's behavior.

Constructors

TooltipBuilder.rich({required RichTooltipBuilder builder, Decoration? decoration, bool? preferBelow, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? verticalOffset, bool? excludeFromSemantics, Duration? waitDuration, Duration? showDuration, TooltipTriggerMode? triggerMode, bool? enableFeedback})
Rich text builder
const
TooltipBuilder.text({required TextTooltipBuilder builder, Decoration? decoration, bool? preferBelow, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? verticalOffset, bool? excludeFromSemantics, TextStyle? textStyle, Duration? waitDuration, Duration? showDuration, TooltipTriggerMode? triggerMode, bool? enableFeedback})
Simple text builder. Have optional TextStyle? textStyle argument.

Properties

builder RichTooltipBuilder
Builder that will be use for generate messages for tooltips
final
decoration Decoration?
Specifies the tooltip's shape and background color.
final
enableFeedback bool?
Whether the tooltip should provide acoustic and/or haptic feedback.
final
excludeFromSemantics bool?
Whether the tooltip's message or richMessage should be excluded from the semantics tree.
final
hashCode int
The hash code for this object.
no setterinherited
margin EdgeInsetsGeometry?
The empty space that surrounds the tooltip.
final
padding EdgeInsetsGeometry?
The amount of space by which to inset the tooltip's child.
final
preferBelow bool?
Whether the tooltip defaults to being displayed below the widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDuration Duration?
The length of time that the tooltip will be shown after a long press is released or mouse pointer exits the widget.
final
triggerMode TooltipTriggerMode?
The TooltipTriggerMode that will show the tooltip.
final
verticalOffset double?
The vertical gap between the widget and the displayed tooltip.
final
waitDuration Duration?
The length of time that a pointer must hover over a tooltip's widget before the tooltip will be shown.
final

Methods

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