Consider the following code that specifies disabledTextColor for a FlatButton:
FlatButton.icon(
icon: const Icon(Icons.check_box),
label: const Text('Foo'),
disabledTextColor: Colors.black,
onPressed: null,
),
How can I translate the disabledTextColor to the equivalent for TextButton?
I figure I need to override style, but I can't seem to get TextButton.styleFrom to work, and Theme.of(context).textButtonTheme.style is null.