title: Flutter showing hasSize error when wrap container in column
body: <p>I am getting an error when I wrap my container in the column widget. I need 2 containers in a column but when I wrap it in column widget it's showing this error </p>
  
  <pre><code>'package:flutter/src/rendering/box.dart':
  Failed assertion: line 1694 pos 12: 'hasSize'
  </code></pre>
  
  <p>Showing this in Column line error </p>
  
  <p>Here is my code</p>
  
  <pre><code>class _PlaceListState extends State&lt;PlaceList&gt; {
    final List _places = [
      {'name': 'Hunza', 'where': 'Gilgit Baltistan'},
      {'name': 'Skardu' ,'where': 'Gilgit Baltistan'},
      {'name': 'Murree', 'where': 'Gilgit Baltistan'},
    ];
  
    @override
    Widget build(BuildContext context) {
      return Column(children: &lt;Widget&gt;[
        Container(
          margin: EdgeInsets.only(left: 40),
          width: MediaQuery.of(context).size.width * 0.5,
          child: ListView.builder(
              itemCount: _places.length,
              itemBuilder: (ctx, int index) {
                return Container(
                  padding: EdgeInsets.only(top: 50),
                  child: Column(
                    children: &lt;Widget&gt;[
                      Text(_places[index]['name'], style: TextStyle(fontSize: 20),),
                      Container(
                        padding: EdgeInsets.only(top: 20),
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(20.0),
                          child: Card(
                            elevation: 40.0,
                            child: Container(
                              width: 200,
                              child: Image(image: AssetImage('assets/images/500place.jpg')),
                            ),
                          ),
                        ),
                      ),
                      Padding(
                          padding: const EdgeInsets.only(top: 7),
                          child: Row(
                            children: &lt;Widget&gt;[
                              Icon(Icons.favorite_border, size: 20),
                              Spacer(),
                              Text(
                                _places[index]['where'],
                              ),
                            ],
                          )
                      ),
  
                    ],
                  ),
                );
              }),
        )
      ],);
    }
  }
  </code></pre>
  
  <p>The screen output i use Navigation rale so that's why I set the width and its working fine without Column widget </p>
  
  <p><a href="https://i.stack.imgur.com/ZAeUb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZAeUb.png" alt="enter image description here"></a></p>