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