JustTheTooltipEntry class

A Tooltip widget that delegates to creation and use of the tooltip and skrim to the outer JustTheTooltipArea. This class is useless if not nested within a JustTheTooltipArea.

A widget to display a tooltip over target widget. The tooltip can be displayed on any axis of the widget and fallback to the opposite axis if the tooltip does cannot fit its content. The tooltip can will be dismissed by waiting a specified time or again tapping on the target widger or anywhere on the screen.

Keep in mind there are different behaviours for the tooltip when isModal is set to true. The effect is to mimic the behavior of a traditional modal that is only closed by tapping on the target widget or outside the screen.

Inheritance

Constructors

JustTheTooltipEntry({Key? key, required Widget content, required Widget child, VoidCallback? onDismiss, VoidCallback? onShow, dynamic controller, bool isModal = false, Duration? waitDuration, Duration? showDuration, TooltipTriggerMode? triggerMode, bool barrierDismissible = true, bool? enableFeedback, Duration? hoverShowDuration, Duration fadeInDuration = const Duration(milliseconds: 150), Duration fadeOutDuration = const Duration(milliseconds: 75), AxisDirection preferredDirection = AxisDirection.down, Curve curve = Curves.easeInOut, Curve reverseCurve = Curves.easeInOut, EdgeInsets margin = const EdgeInsets.all(8.0), double offset = 0.0, double elevation = 4.0, BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(6)), double tailLength = 16.0, double tailBaseWidth = 32.0, TailBuilder tailBuilder = JustTheInterface.defaultTailBuilder, AnimatedTransitionBuilder animatedTransitionBuilder = JustTheInterface.defaultAnimatedTransitionBuilder, Color? backgroundColor, TextDirection textDirection = TextDirection.ltr, Shadow? shadow, bool showWhenUnlinked = false, ScrollController? scrollController})
const

Properties

animatedTransitionBuilder AnimatedTransitionBuilder
final
backgroundColor Color?
final
barrierDismissible bool
final
borderRadius BorderRadiusGeometry
final
child Widget
final
content Widget
final
controller → dynamic
final
curve Curve
final
elevation double
final
enableFeedback bool?
final
fadeInDuration Duration
final
fadeOutDuration Duration
final
hashCode int
The hash code for this object.
no setterinherited
hoverShowDuration Duration?
final
isModal bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets
final
offset double
final
onDismiss VoidCallback?
final
onShow VoidCallback?
final
preferredDirection AxisDirection
final
reverseCurve Curve
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
final
shadow Shadow?
final
showDuration Duration?
final
showWhenUnlinked bool
final
tailBaseWidth double
final
tailBuilder → TailBuilder
final
tailLength double
final
textDirection TextDirection
final
triggerMode TooltipTriggerMode?
final
waitDuration Duration?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _JustTheTooltipEntryState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited