How to left align the OutlineButton icon in flutter?

Posted by Editorial Staff | Updated on

Want to left align the OutlineButton icon in flutter? There are many ways you can do it, but it’s not possible using the factory constructor that you mentioned OutlineButton.icon, you can go deeper and check the source code to see how it build the widget.

You can use the OutlineButton widget and pass a Stack/Row as a child, check this sample:


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.

Related Questions & Answers