labelStyle static method

TextStyle labelStyle({
  1. double fontSize = 14,
  2. FontWeight fontWeight = FontWeight.w700,
  3. double letterSpacing = 1.2,
  4. Color? color,
})

Standard label style for all CTA buttons.

Has no BuildContext — font family is inherited from the app's text theme.

Implementation

static TextStyle labelStyle({
  double fontSize = 14,
  FontWeight fontWeight = FontWeight.w700,
  double letterSpacing = 1.2,
  Color? color,
}) =>
    TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      letterSpacing: letterSpacing,
      color: color,
    );