disabledText static method

Widget disabledText(
  1. BuildContext context,
  2. String text, {
  3. TextAlign? textAlign,
})

Creates a Text widget with disabled styling.

Parameters:

  • context: The build context to access theme data
  • text: The text to display
  • textAlign: Optional text alignment

Implementation

static Widget disabledText(BuildContext context, String text,
    {TextAlign? textAlign}) {
  return Text(text, style: disabledTextStyle(context), textAlign: textAlign);
}