'ElevatedButton with a custom elevation'

),

Migrating buttons with custom shapes and borders

The original FlatButton, RaisedButton, and OutlineButton classes all
provide a shape parameter which defines both the button’s shape and
the appearance of its outline. The corresponding new classes and their
themes support specifying the button’s shape and its border
separately, with OutlinedBorder shape and BorderSide side parameters.

In this example the original OutlineButton version specifies the same
color for border in its highlighted (pressed) state as for other
states.

OutlineButton

shape:

StadiumBorder

(),

highlightedBorderColor:

Colors

red

borderSide:

BorderSide

width:

color:

Colors

red

),