bodyText1 static method
- BuildContext context
A text style for the app's body text 1.
The body text 1 text style is used for the app's main content and is typically displayed in a medium font size.
Implementation
static TextStyle bodyText1(BuildContext context) => TextStyle(
// The font size is set to 16sp which is a medium font size.
fontSize: 16.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,
);