TooltipBubble.text constructor
TooltipBubble.text(
- String text, {
- Key? key,
- Color? color,
- TooltipPointerDirection direction = TooltipPointerDirection.up,
- double nubAlign = 0.5,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: NeonTheme.s16, vertical: NeonTheme.s8),
Convenience for the plain-text-label case.
Implementation
TooltipBubble.text(
String text, {
super.key,
this.color,
this.direction = TooltipPointerDirection.up,
this.nubAlign = 0.5,
this.padding = const EdgeInsets.symmetric(
horizontal: NeonTheme.s16,
vertical: NeonTheme.s8,
),
}) : child = Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
color: NeonTheme.ink,
fontSize: 14,
fontWeight: FontWeight.w800,
),
);