disabledElevation:

onPressed:

()

},

child:

Text

'RaisedButton with custom elevations'

),

ElevatedButton

style:

ElevatedButton

styleFrom

elevation:

),

onPressed:

()

},

child:

Text

'ElevatedButton with custom elevations'

),

To arbitrarily override just one elevation, like the pressed
elevation:

RaisedButton

highlightElevation:

16

onPressed:

()

},

child:

Text