CKTooltipV3 class

Inheritance

Constructors

CKTooltipV3({Key? key, required Widget child, required CKToolTipPositionV3 position, required String tooltipText, bool? showClose, VoidCallback? onCloseClick, bool? clickMaskDismiss = true, Duration? autoHiddenDuration, bool? usePenetrate = false, bool? needClick = false, VoidCallback? onChildClick, Offset? offset, List<CKTooltipModalV3>? list, double? maxWidth, ValueChanged<int>? onItemClick, VoidCallback? onDismiss, bool? useAnimation = false, InlineSpan? richContent, bool? needPositioningAngle, Color? bgColor, EdgeInsets? insets})
const

Properties

autoHiddenDuration Duration?
多少时间后自动消失
final
bgColor Color?
背景颜色
final
child Widget
目标控件
final
clickMaskDismiss bool?
点击外部dialog是否消失
final
hashCode int
The hash code for this object.
no setterinherited
insets EdgeInsets?
内边距
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
list List<CKTooltipModalV3>?
多条数据(可带icon) list不为空时,text内容设置无效
final
maxWidth double?
自定义气泡最大宽度
final
needClick bool?
是否需要点击展示气泡;默认直接展示
final
needPositioningAngle bool?
箭头是否需要对齐目标控件的中心位置
final
offset Offset?
偏移量
final
onChildClick VoidCallback?
目标控件点击事件
final
onCloseClick VoidCallback?
关闭按钮回调
final
onDismiss VoidCallback?
final
onItemClick ValueChanged<int>?
final
position CKToolTipPositionV3
气泡相对目标控件的展示位置
final
richContent InlineSpan?
富文本内容
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showClose bool?
是否展示关闭按钮
final
tooltipText String
气泡文字
final
useAnimation bool?
是否使用动画,默认使用
final
usePenetrate bool?
屏幕上交互事件是否可以穿透遮罩背景,默认false不可以
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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, int wrapWidth = 65}) 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

Static Methods

showTooltip(BuildContext context, CKToolTipPositionV3 position, String tooltipText, {bool? showClose = false, VoidCallback? onCloseClick, bool? clickMaskDismiss = true, int? xOffset, List<CKTooltipModalV3>? list, double? maxWidth, ValueChanged<int>? onItemClick, bool? isCenter, bool? useAnimation, VoidCallback? onDismiss, InlineSpan? richContent, Widget? bottomWidget}) → void