Why is container width not honoured in Flutter?

Posted by Jennifer | Updated on

In this example, we have shared why is container width not honoured in Flutter. Flutter works, your Container doesn’t know the constraints of the Parent, then It try to fill all the space available.

You can fix it adding an Align Widget:

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