TTooltip constructor
const
TTooltip({
- Key? key,
- required String message,
- required Widget child,
- Widget? richMessage,
- IconData? icon,
- TTooltipPosition position = TTooltipPosition.auto,
- Color? color,
- TTooltipSize size = TTooltipSize.small,
- Duration showDelay = const Duration(milliseconds: 100),
- Duration hideDelay = const Duration(milliseconds: 50),
- Duration waitDuration = Duration.zero,
- Duration showDuration = const Duration(seconds: 3),
- TTooltipTriggerMode triggerMode = TTooltipTriggerMode.hover,
- bool enableFeedback = true,
- bool excludeFromSemantics = false,
- Decoration? decoration,
- TextStyle? textStyle,
- TextAlign? textAlign,
- EdgeInsetsGeometry margin = const EdgeInsets.all(0),
- EdgeInsetsGeometry? padding,
- double verticalOffset = 5,
- bool preferBelow = false,
- bool enableHapticFeedback = false,
- bool showArrow = true,
- bool interactive = false,
- double maxWidth = 250.0,
- VoidCallback? onShow,
- VoidCallback? onHide,
- TVariant? type,
Implementation
const TTooltip(
{super.key,
required this.message,
required this.child,
this.richMessage,
this.icon,
this.position = TTooltipPosition.auto,
this.color,
this.size = TTooltipSize.small,
this.showDelay = const Duration(milliseconds: 100),
this.hideDelay = const Duration(milliseconds: 50),
this.waitDuration = Duration.zero,
this.showDuration = const Duration(seconds: 3),
this.triggerMode = TTooltipTriggerMode.hover,
this.enableFeedback = true,
this.excludeFromSemantics = false,
this.decoration,
this.textStyle,
this.textAlign,
this.margin = const EdgeInsets.all(0),
this.padding,
this.verticalOffset = 5,
this.preferBelow = false,
this.enableHapticFeedback = false,
this.showArrow = true,
this.interactive = false,
this.maxWidth = 250.0,
this.onShow,
this.onHide,
this.type});