Answered by : augusto-vicente
style: ButtonStyle( shape: MaterialStateProperty.all<RoundedRectangleBorder>( RoundedRectangleBorder( borderRadius: BorderRadius.circular(18.0), side: BorderSide(color: Colors.red) ) )
)
Source : https://stackoverflow.com/a/57482106/13384755 | Last Update : Tue, 23 Mar 21
Answered by : unsightly-unicorn-z47ygvbhk56y
ElevatedButton( onPressed: () {}, style: ElevatedButton.styleFrom( padding: EdgeInsets.symmetric(horizontal: 40.0, vertical: 20.0), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10.0) ), primary: Colors.purple ), child: Text( "CLICK ME", style: TextStyle(color: Colors.white, fontSize: 18), ),
)
Source : https://educity.app/flutter/create-a-button-with-border-radius | Last Update : Sat, 16 Jul 22
Answered by : jacob-j-van-wyk
ElevatedButton( onPressed: () {}, style: ElevatedButton.styleFrom( shape: new RoundedRectangleBorder( borderRadius: new BorderRadius.circular(30.0), ), ), child: Text( "Click ME!!" ),
)
Source : https://flutterforyou.com/how-to-add-an-elevatedbutton-with-rounded-corners-in-flutter/ | Last Update : Sun, 26 Sep 21
Answered by : evil-eel-046eu18xdels
shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(18.0), side: BorderSide(color: Colors.red)
),
Source : https://stackoverflow.com/questions/49991444/create-a-rounded-button-button-with-border-radius-in-flutter | Last Update : Sat, 16 May 20
Answered by : jittery-jackal-l7g0z60oq1xy
ElevatedButton( onPressed: () {}, child: Text('Button'), style: ElevatedButton.styleFrom(shape: StadiumBorder()),
)
Source : https://stackoverflow.com/questions/49991444/create-a-rounded-button-button-with-border-radius-in-flutter | Last Update : Wed, 27 Apr 22