TTooltip constructor

const TTooltip({
  1. Key? key,
  2. required String message,
  3. required Widget child,
  4. Widget? richMessage,
  5. IconData? icon,
  6. TTooltipPosition position = TTooltipPosition.auto,
  7. Color? color,
  8. TTooltipSize size = TTooltipSize.small,
  9. Duration showDelay = const Duration(milliseconds: 100),
  10. Duration hideDelay = const Duration(milliseconds: 50),
  11. Duration waitDuration = Duration.zero,
  12. Duration showDuration = const Duration(seconds: 3),
  13. TTooltipTriggerMode triggerMode = TTooltipTriggerMode.hover,
  14. bool enableFeedback = true,
  15. bool excludeFromSemantics = false,
  16. Decoration? decoration,
  17. TextStyle? textStyle,
  18. TextAlign? textAlign,
  19. EdgeInsetsGeometry margin = const EdgeInsets.all(0),
  20. EdgeInsetsGeometry? padding,
  21. double verticalOffset = 5,
  22. bool preferBelow = false,
  23. bool enableHapticFeedback = false,
  24. bool showArrow = true,
  25. bool interactive = false,
  26. double maxWidth = 250.0,
  27. VoidCallback? onShow,
  28. VoidCallback? onHide,
  29. 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});