},

child:

Text

'RaisedButton with a custom elevation'

),

ElevatedButton

style:

ButtonStyle

elevation:

MaterialStateProperty

resolveWith

double

>(

Set

MaterialState

states

if

states

contains

MaterialState

pressed

))

return

16

return

null

}),

),

onPressed:

()

},

child:

Text

'ElevatedButton with a custom elevation'

),