How to center only one element in a row of 2 elements in Flutter?

Posted by Andre Scott | Updated on

Want to center only one element in a row of 2 elements in Flutter? You can simply use Expanded and Spacer widgets on left/right side and put your widget inside the Expanded:


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