Play Flutter Quiz. Click here .

How to add Border to a raised button?

This Article is posted by seven.srikanth@gmail.com at 25-12-2018 21:04:49



You can add Border to a raised button by adding a RoundedRecangleBorder as show in below example.

RaisedButton(onPressed: () {}, child: Text('Label Here', style: TextStyle(color: Colors.white),),
color: Colors.transparent,
shape: RoundedRectangleBorder(side: BorderSide(color: Colors.white)),
),

Thanks,
Srikanth

Tags: How to add Border to a raised button?




0 Comments
Login to comment.

Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.







© 2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com

Terms | Privacy