Reputation: 566
I want to shape a RaisedButton like this:
How can i do that ?
ButtonTheme(
minWidth: 120,
height: 40.0,
child: RaisedButton(
padding: const EdgeInsets.all(8.0),
textColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
color: Colors.redAccent,
onPressed: () {},
child: new Text("Giriş"),
));
Upvotes: 0
Views: 69
Reputation: 1522
You can get it done by giving BeveledRectangleBorder to the shape
property...
Here's a minimal example for you..
shape: BeveledRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(2))
),
Hope it solves your issue..!
Upvotes: 3