A material design tooltip.
Tooltips provide text labels that help explain the function of a button or other user interface action. Wrap the button in a Tooltip widget to show a label when the widget long pressed (or when the user takes some other appropriate action).
Many widgets, such as IconButton, FloatingActionButton, and
PopupMenuButton have a tooltip
property that, when non-null, causes the
widget to include a Tooltip in its build.
Tooltips improve the accessibility of visual widgets by proving a textual representation of the widget, which, for example, can be vocalized by a screen reader.
See also:
- Inheritance
- Object
- Widget
- StatefulWidget
- Tooltip
Constructors
Properties
- child → Widget
-
The widget below this widget in the tree.
read-only - height → double
-
The amount of vertical space the tooltip should occupy (inside its padding).
read-only - message → String
-
The text to display in the tooltip.
read-only - padding → EdgeInsets
-
The amount of space by which to inset the child.
read-only - preferBelow → bool
-
Whether the tooltip defaults to being displayed below the widget.
read-only - verticalOffset → double
-
The amount of vertical distance between the widget and the displayed tooltip.
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - key → Key
-
Controls how one widget replaces another widget in the tree.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
createState(
) → _TooltipState -
Creates the mutable state for this widget at a given location in the tree.
-
debugFillDescription(
List<String> description) → void -
Add additional information to the given description for use by
toString
. -
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited -
toStringShort(
) → String -
A short, textual description of this widget.
inherited