subtitle static method
- BuildContext context
A text style for the app's subtitle text.
The subtitle text style is used for the app's subtitle text and is typically displayed in a small font size.
Implementation
static TextStyle subtitle(BuildContext context) => TextStyle(
// 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 onSurface color of the theme with an alpha of 0x80
// which makes the text semi-transparent.
color: Theme.of(context).colorScheme.onSurface.withAlpha(0x80),
// The font family is set to ArabicFont which is a custom font for the app.
fontFamily: 'ArabicFont',
);