bodyText2 static method

TextStyle bodyText2(
  1. BuildContext context
)

A text style for the app's body text 2.

The body text 2 text style is used for secondary content and is typically displayed in a smaller font size than the body text 1.

Implementation

static TextStyle bodyText2(BuildContext context) => TextStyle(
  // The font size is set to 14sp which is a small font size.
  fontSize: 14.sp,
  // The font weight is set to normal which makes the text normal and not
  // thicker or thinner than the default font weight.
  fontWeight: FontWeight.normal,
  // The color is set to the onPrimary color of the theme which is the
  // default color for text on the primary color.
  color: Theme.of(context).colorScheme.onPrimary,
);