Flutter screen appears empty when adding text field

Posted by Andre Scott | Updated on

Flutter screen appears empty when adding text field. That’s is because the Row container doesn’t know the size of your TextField widget

This is the error that you get:

Following function, which probably computed the invalid constraints in question:

But it looks weird in your screen ,so you can improve using Flexible as parent of your TextField and Text


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