MeTooltip class

If you do not understand the meaning of these parameters, please try it yourself, or see the example.

Basic api Usage examples:

MeTooltip( message: "This is a right tooltip", child: Text("right tooltip"), allOffset: 50, preferOri: PreferOrientation.right, ),

Inheritance

Constructors

MeTooltip({Key? key, Widget? child, TooltipBase tooltipChild(DefTooltipType)?, Color? triangleColor, bool? ignorePointer, String? message, double? allOffset, PreferOrientation? preferOri, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, bool? excludeFromSemantics, BoxDecoration? decoration, TextStyle? textStyle, bool openMouseEvent = true, Duration? showDuration, Duration? waitDuration, bool? isShow})
const

Properties

allOffset double?
提示框偏移量 Tip Box Offset
final
child Widget?
提示框目标Widget Tip box target widget
final
decoration BoxDecoration?
提示框背景样式 Tip box background style
final
excludeFromSemantics bool?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
提示框高度 Tip box height
final
ignorePointer bool?
阻止提示框指针hitTest
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry?
提示框外边距 Tip box outer margin
final
message String?
提示消息 Tip Message
final
openMouseEvent bool
Close mouse events
final
padding EdgeInsetsGeometry?
提示框内边距 Margin inside the prompt box
final
preferOri PreferOrientation?
提示位置 Tip box orientation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDuration Duration?
显示时间
final
textStyle TextStyle?
提示文字样式 Tip box text style
final
tooltipChild → (TooltipBase Function(DefTooltipType)?)
自定义提示框 Custom Tip Box Widget
final
triangleColor Color?
提示框三角背景颜色 Cue box triangle background color
final
waitDuration Duration?
等待时间
final

Methods

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