‘An InputDecorator…cannot have an unbounded width’

‘Vertical viewport was given unbounded height’

This is another common layout error you could run into 
while creating a UI in your Flutter app.

What does the error look like?

The message shown by the error looks like this:

How might you run into this error?

How to fix it?

To fix this error, specify how tall the ListView should be. To make it as tall
as the remaining space in the Column, wrap it using an Expanded widget (see
the example below). Otherwise, specify an absolute height using a SizedBox
widget or a relative height using a Flexible widget.

Further information:

The resources linked below provide further information about this error.

How to debug layout issues with the Flutter Inspector

Understanding constraints

‘An InputDecorator…cannot have an unbounded width’