'OutlinedButton with custom shape and border'

),

Most of the new OutlinedButton widget’s style parameters, including
its shape and border, can be specified with MaterialStateProperty
values, which is to say that they can have different values depending
on the button’s state. To specify a different border color when the
button is pressed, do the following:

OutlineButton

shape:

StadiumBorder

(),

highlightedBorderColor:

Colors

blue

borderSide:

BorderSide

width:

color:

Colors

red

),

onPressed:

()

},

child:

Text

'OutlineButton with custom shape and border'

),

OutlinedButton