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