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,
- double? width,
- double? height,
- Color? color,
- BubbleArrowDirection? position,
- double length = 1,
- double arrHeight = 12.0,
- double arrAngle = 60.0,
- double arrowRadius = 10.0,
- double strokeWidth = 4.0,
- PaintingStyle style = PaintingStyle.fill,
- Color borderColor = Colors.transparent,
- double innerPadding = 6.0,
- bool canOnHover = true,
- 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.width,
this.height,
this.color,
this.position,
this.length = 1,
this.arrHeight = 12.0,
this.arrAngle = 60.0,
this.arrowRadius = 10.0,
this.strokeWidth = 4.0,
this.style = PaintingStyle.fill,
this.borderColor = Colors.transparent,
this.innerPadding = 6.0,
this.canOnHover = true,
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);