captionLight static method
- BuildContext context
A text style for the app's caption light text.
The caption light text style is used for the app's caption light text and is typically displayed in a small font size.
Implementation
static TextStyle captionLight(BuildContext context) => TextStyle(
// The font size is set to 12sp which is a very small font size.
fontSize: 12.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 with an alpha of 0x50
// which makes the text semi-transparent.
color: Theme.of(context).colorScheme.onPrimary.withAlpha(0x50),
);