TooltipWrapper constructor
const
TooltipWrapper({
- Key? key,
- required Widget child,
- required String message,
- TooltipPosition position = TooltipPosition.top,
- Color backgroundColor = Colors.white,
- Color textColor = Colors.black,
- double arrowSize = 6.0,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
- double borderRadius = 4.0,
- bool showArrow = true,
- bool autoShow = false,
- Duration showDelay = const Duration(milliseconds: 500),
Implementation
const TooltipWrapper({
super.key,
required this.child,
required this.message,
this.position = TooltipPosition.top,
this.backgroundColor = Colors.white,
this.textColor = Colors.black,
this.arrowSize = 6.0,
this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
this.borderRadius = 4.0,
this.showArrow = true,
this.autoShow = false,
this.showDelay = const Duration(milliseconds: 500),
});