disabledTextStyle static method

TextStyle disabledTextStyle(
  1. BuildContext context
)

Creates a text style with the theme's disabled color.

Parameters:

  • context: The build context to access theme data

Returns a TextStyle using the theme's disabled color.

Implementation

static TextStyle disabledTextStyle(BuildContext context)
{
  return TextStyle(color: context.theme.disabledColor);
}