ZTooltip constructor
const
ZTooltip({
- required Widget child,
- ZToolTipController? controller,
- BuildTip? buildTip,
- bool enableBubble = true,
- bool fixedTip = false,
- Duration duration = const Duration(seconds: 0),
- TipViewLayout? layout,
- bool canOnHover = true,
- double tipRadius = 8,
- double arrowWidth = 12,
- double arrowHeight = 8,
- double arrowPositionPercent = 0.5,
- BubbleArrowDirection direction = BubbleArrowDirection.top,
- BubbleArrowShape arrowShape = BubbleArrowShape.triangle,
- bool arrowAdaptive = true,
- BoxDecoration? decoration,
- Clip clipBehavior = Clip.none,
- GestureTapCallback? onTap,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTapCancel,
- GestureTapCallback? onDoubleTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onSecondaryTap,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCallback? onSecondaryTapCancel,
- ValueChanged<
bool> ? onHighlightChanged, - ValueChanged<
bool> ? onHover, - MouseCursor? mouseCursor,
- bool containedInkWell = false,
- BoxShape highlightShape = BoxShape.circle,
- double? radius,
- BorderRadius? borderRadius,
- ShapeBorder? customBorder,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- WidgetStateProperty<
Color?> ? overlayColor, - Color? splashColor,
- InteractiveInkFeatureFactory? splashFactory,
- bool enableFeedback = true,
- bool excludeFromSemantics = false,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- ValueChanged<
bool> ? onFocusChange, - bool autofocus = false,
- Key? key,
Implementation
const ZTooltip(
{required this.child,
this.controller,
this.buildTip,
this.enableBubble = true,
this.fixedTip = false,
this.duration = const Duration(seconds: 0),
this.layout,
this.canOnHover = true,
this.tipRadius = 8,
this.arrowWidth = 12,
this.arrowHeight = 8,
this.arrowPositionPercent = 0.5,
this.direction = BubbleArrowDirection.top,
this.arrowShape = BubbleArrowShape.triangle,
this.arrowAdaptive = true,
this.decoration,
this.clipBehavior = Clip.none,
this.onTap,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onDoubleTap,
this.onLongPress,
this.onSecondaryTap,
this.onSecondaryTapDown,
this.onSecondaryTapUp,
this.onSecondaryTapCancel,
this.onHighlightChanged,
this.onHover,
this.mouseCursor,
this.containedInkWell = false,
this.highlightShape = BoxShape.circle,
this.radius,
this.borderRadius,
this.customBorder,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.overlayColor,
this.splashColor,
this.splashFactory,
this.enableFeedback = true,
this.excludeFromSemantics = false,
this.focusNode,
this.canRequestFocus = true,
this.onFocusChange,
this.autofocus = false,
Key? key})
: super(key: key);