SmartTooltip constructor
const
SmartTooltip({})
Creates a new instance of SmartTooltip.
child: The widget that triggers the tooltip (required).message: The tooltip message to display (required).borderColor: The color of the tooltip border (required).
Example usage:
SmartTooltip(
message: "This is a tooltip!",
borderColor: Colors.blue,
child: Icon(Icons.info),
);
Implementation
const SmartTooltip({
super.key,
required this.borderColor,
required this.child,
required this.message,
this.borderWidth = 1.0,
this.backgroundColor = Colors.black,
this.textStyle = const TextStyle(
color: Colors.white,
),
this.position = TooltipPosition.top,
});