MacosTooltipThemeData class
A style that overrides the default appearance of MacosTooltips when it's used with MacosTooltipTheme or with the overall MacosTheme's MacosThemeData.tooltipTheme.
See also:
- MacosTooltipTheme, the theme which is configured with this class.
- MacosThemeData.tooltipTheme, which can be used to override the default style for MacosTooltips below the overall MacosTheme.
- Mixed in types
Constructors
- MacosTooltipThemeData({double? height, double? verticalOffset, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, bool? preferBelow, Decoration? decoration, Duration? showDuration, Duration? waitDuration, TextStyle? textStyle})
-
A style that overrides the default appearance of
MacosTooltips when it's used with MacosTooltipTheme or with the
overall MacosTheme's MacosThemeData.tooltipTheme.
const
- MacosTooltipThemeData.standard({required Brightness brightness, required TextStyle textStyle})
-
Creates a default tooltip theme.
factory
Properties
- decoration → Decoration?
-
Specifies the tooltip's shape and background color.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
The height of the tooltip's
child
.final - 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.
final
- textStyle → TextStyle?
-
The style to use for the message of 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
-
copyWith(
{Decoration? decoration, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, bool? preferBelow, Duration? showDuration, TextStyle? textStyle, double? verticalOffset, Duration? waitDuration}) → MacosTooltipThemeData - Copies this MacosTooltipThemeData into another.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
MacosTooltipThemeData? other) → MacosTooltipThemeData - Merges this MacosTooltipThemeData with another.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
MacosTooltipThemeData a, MacosTooltipThemeData b, double t) → MacosTooltipThemeData - Linearly interpolate between two tooltip themes.