SimpleTooltip class

Inheritance

Constructors

SimpleTooltip({Key? key, required Widget child, TooltipDirection tooltipDirection = TooltipDirection.up, required Widget content, required bool show, EdgeInsets ballonPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 16), double? maxWidth, double? minWidth, double? maxHeight, double? minHeight, double? bottom, double? right, double? top, double? left, double arrowTipDistance = 6, double arrowLength = 20, double minimumOutSidePadding = 20.0, double arrowBaseWidth = 20.0, double borderRadius = 10, double borderWidth = 2.0, Color borderColor = const Color(0xFF50FFFF), Duration animationDuration = const Duration(milliseconds: 460), Color backgroundColor = const Color(0xFFFFFFFF), List<BoxShadow> customShadows = const [BoxShadow(color: Color(0x45222222), blurRadius: 8, spreadRadius: 2)], dynamic tooltipTap()?, bool hideOnTooltipTap = false, RouteObserver<PageRoute>? routeObserver})
const

Properties

animationDuration Duration
sets the duration of the tooltip entrance animation defaults to 460 milliseconds
final
arrowBaseWidth double
The width of the arrow at its base
final
arrowLength double
The length of the Arrow
final
arrowTipDistance double
The distance of the tip of the arrow's tip to the center of the target
final
backgroundColor Color
The color of the border
final
ballonPadding EdgeInsets
Sets the content padding defautls to: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
final
borderColor Color
The color of the border
final
borderRadius double
The corder radii of the border
final
borderWidth double
the stroke width of the border
final
bottom double?
final
child Widget
The child which the tooltip will target to
final
content Widget
Defines the content that its placed inside the tooltip ballon
final
customShadows List<BoxShadow>
Set a custom list of BoxShadow defaults to const BoxShadow(color: const Color(0x45222222), blurRadius: 8, spreadRadius: 2),
final
hashCode int
The hash code for this object.
no setterinherited
hideOnTooltipTap bool
If you want to automatically dismiss the tooltip whenever a user taps on it, set this flag to true For more control on when to dismiss the tooltip please rely on the show property and tooltipTap handler defaults to false
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
left double?
final
maxHeight double?
final
maxWidth double?
final
minHeight double?
final
minimumOutSidePadding double
The minium padding from the Tooltip to the screen limits
final
minWidth double?
minWidth, minHeight, maxWidth, maxHeight optional size constraints. If a constraint is not set the size will ajust to the content
final
final
routeObserver RouteObserver<PageRoute>?
Pass a RouteObserver so that the widget will listen for route transition and will hide tooltip when the widget's route is not active
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show bool
If true, it will display the tool , if false it will hide it
final
tooltipDirection TooltipDirection
Sets the tooltip direction defaults to TooltipDirection.up
final
tooltipTap → (dynamic Function()?)
Set a handler for listening to a tap event on the tooltip (This is the recommended way to put your logic for dismissing the tooltip)
final
top double?
top, right, bottom, left position the Tooltip absolute relative to the whole screen
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() SimpleTooltipState
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