title: How can I fix RenderCustomMultiChildLayoutBox object was given an infinite size during layout?
body: <p>Code:</p>
  <pre><code>import 'dart:convert';
  
  import 'package:flutter/material.dart';
  
  import 'package:flutter/foundation.dart';
  
  class BeerListPage extends StatefulWidget {
    BeerListPage({required Key key}) : super(key: key);
  
    @override
    BeerListPageState createState() =&gt; BeerListPageState();
  }
  
  class BeerListPageState extends State&lt;BeerListPage&gt; {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
          body: new Container(
            child: new Center(
              child: new FutureBuilder(
                  future:
                  DefaultAssetBundle.of(context).loadString('packages/beers/beers.json'),
                  builder: (context, snapshot) {
                    var beers = json.decode(snapshot.data.toString());
  
                    return new ListView.builder(shrinkWrap: true,
                      itemBuilder: (BuildContext context, int index) {
                        var beer = beers[index];
                        return new Card(
                          child: new Column(
                            crossAxisAlignment: CrossAxisAlignment.stretch,
                            children: &lt;Widget&gt;[
                              new Text(&quot;Name: &quot; + beer['name'],
                                  style: TextStyle(
                                      fontWeight: FontWeight.bold, fontSize: 24)),
                              new Text(&quot;Country: &quot; + beer['country'],
                                  style: TextStyle(
                                      fontWeight: FontWeight.normal, fontSize: 20)),
                              new Text(&quot;ABV: &quot; + beer['abv'],
                                  style: TextStyle(
                                      fontWeight: FontWeight.normal, fontSize: 20)),
                              new Image.network(beer['image'], height: 200)
                            ],
                          ),
                        );
                      },
                      itemCount: beers == null ? 0 : beers.length,
                    );
                  }),
            ),
          ));
    }
  }
  </code></pre>
  <p>Error messages:
  A RenderFlex overflowed by Infinity pixels on the bottom.
  RenderCustomMultiChildLayoutBox object was given an infinite size during layout.
  _RenderInkFeatures object was given an infinite size during layout.
  RenderPhysicalModel object was given an infinite size during layout.
  The relevant error-causing widget was:
  Scaffold file:///C:/Users/Miche/AndroidStudioProjects/untitled/lib/beer_list.dart:17:12</p>