Flutter listview bottom overflow

I would also recommend Wrap for anyone running into an issue where a container is sized wrong within the listview, causing an overflow:

                          new Container(
                             alignment: Alignment.center,
                             child: Wrap( //the magic
                               children: [
                                 new Container(),
                               ],
                             ),
                           ),

You can use Expanded widget or set the height for the Container.


wrap the Column in an Expanded widget:

Expanded(
  child: Column(
  ),
),

Another way is to wrap the Column in a Flexible widget and specify a flex factor.

Flexible(
           flex: 1,
           child: Column(
            children: [
                      
                  ],
               ),
           ),

Tags:

Dart

Flutter