'RaisedButton with custom disabled colors'

),

),

ElevatedButton

style:

ElevatedButton

styleFrom

onSurface:

Colors

red

),

onPressed:

null

child:

Text

'ElevatedButton with custom disabled colors'

),

For complete control over the disabled colors, one must define the
ElevatedButton’s style explicitly, in terms of
MaterialStateProperties:

RaisedButton

disabledColor:

Colors

red

disabledTextColor:

Colors

blue

onPressed:

null

child:

Text