FTooltipStyle class

A FTooltip's style.

Implemented types
Mixed-in types
Available extensions

Constructors

FTooltipStyle({required Decoration decoration, required TextStyle textStyle, required Future<void> hapticFeedback(), ImageFilter? backgroundFilter, EdgeInsets padding = const .symmetric(horizontal: 12, vertical: 6), BoxConstraints constraints = const BoxConstraints(), FPortalArrowStyle arrowStyle = const FPortalArrowStyle(baseRadius: 0, width: 8, height: 5, tipRadius: 1.5), FTooltipMotion motion = const FTooltipMotion(), Duration hoverEnterDuration = const Duration(milliseconds: 500), Duration hoverExitDuration = const Duration(milliseconds: 100), Duration longPressExitDuration = const Duration(milliseconds: 1500)})
Creates a FTooltipStyle.
const
FTooltipStyle.inherit({required FColors colors, required FTypography typography, required FStyle style, required FHapticFeedback hapticFeedback, FTooltipMotion motion = const FTooltipMotion(), Duration hoverEnterDuration = const Duration(milliseconds: 500), Duration hoverExitDuration = const Duration(milliseconds: 100), Duration longPressExitDuration = const Duration(milliseconds: 1500)})
Creates a FTooltipStyle that inherits its properties.

Properties

arrowStyle → FPortalArrowStyle
The arrow's style. Defaults to FPortalArrowStyle(baseRadius: 0, width: 8, height: 5, tipRadius: 1.5).
final
backgroundFilter → ImageFilter?
An optional background filter applied to the tooltip.
final
constraints → BoxConstraints
The tooltip's constraints. The height & width is capped at the viewport so large tips wrap.
final
decoration → Decoration
The box decoration.
final
hapticFeedback → Future<void> Function()
The haptic feedback for when the tooltip is shown via long press.
final
hashCode → int
The hash code for this object.
no setterinherited
hoverEnterDuration → Duration
The duration to wait before showing the tooltip after the user hovers over the target. Defaults to 500ms.
final
hoverExitDuration → Duration
The duration to wait before hiding the tooltip after the user has stopped hovering over the target.
final
longPressExitDuration → Duration
The duration to wait before hiding the tooltip after the user has stopped pressing the target. Defaults to 1500ms.
final
motion → FTooltipMotion
The tooltip's motion configuration. Defaults to FTooltipMotion.
final
padding → EdgeInsets
The padding surrounding the tooltip's text. Defaults to EdgeInsets.symmetric(horizontal: 12, vertical: 6).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textStyle → TextStyle
The tooltip's default text style.
final

Methods

call(covariant Object _) → FTooltipStyle
Returns itself.
inherited
copyWith({DecorationDelta? decoration, TextStyleDelta? textStyle, Future<void> hapticFeedback()?, ImageFilter? backgroundFilter = Sentinels.imageFilter, EdgeInsetsDelta? padding, BoxConstraints? constraints, FPortalArrowStyleDelta? arrowStyle, FTooltipMotionDelta? motion, Duration? hoverEnterDuration, Duration? hoverExitDuration, Duration? longPressExitDuration}) → FTooltipStyle

Available on FTooltipStyle, provided by the $FTooltipStyleTransformations extension

Returns a copy of this FTooltipStyle with the given properties replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
lerp(FTooltipStyle other, double t) → FTooltipStyle

Available on FTooltipStyle, provided by the $FTooltipStyleTransformations extension

Linearly interpolate between this and another FTooltipStyle using the given factor t.
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.
inherited