flatbutton decoration flutter code example
Example 1: flutter button border radius
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
side: BorderSide(color: Colors.red)
),
Example 2: rounded button flutter
FlatButton(
color: Colors.red,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0)),
child: new Text('round button'),
onPressed: () {},
),
Example 3: flatbutton flutter
FlatButton(
onPressed: () {
/*...*/
},
child: Text(
"Flat Button",
),
)