TooltipBubble.text constructor

TooltipBubble.text(
  1. String text, {
  2. Key? key,
  3. Color? color,
  4. TooltipPointerDirection direction = TooltipPointerDirection.up,
  5. double nubAlign = 0.5,
  6. 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,
       ),
     );