Want to make a button’s corner only rounded on the top? Use the below generic example make a button’s corner only rounded on the top.
1 2 3 4 5 6 7 8 9 10 | RaisedButton( onPressed: () {}, shape: RoundedRectangleBorder( borderRadius: BorderRadius.only( topLeft: Radius.circular(15.0), topRight: Radius.circular(15.0))), child: Text('Click Me!'), color: Colors.blueAccent, textColor: Colors.white, ), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.