title: Getting 'Horizontal viewport was given unbounded height.' with TabBarView in flutter
body: <p>I'm trying to make a profile page, where the users info is at the top. And then have a tab view below that for different views.</p>
  
  <p><a href="https://i.stack.imgur.com/xKAQrt.png?" rel="noreferrer"><img src="https://i.stack.imgur.com/xKAQrt.png?" alt="enter image description here"></a></p>
  
  <p>This is the code I'm using at the moment, when I take the <code>TabBarView</code> out it doesn't through an error, and if I wrap the <code>TabBarView</code> in an <code>Expanded</code> the error <code>RenderFlex children have non-zero flex but incoming height constraints are unbounded.</code> comes up.</p>
  
  <pre><code>     @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text(''),
        ),
        body: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: &lt;Widget&gt;[
            Padding(
              padding: EdgeInsets.all(10.0),
              child: Row(
                children: &lt;Widget&gt;[
                  CircleAvatar(
                    minRadius: 45.0,
                    backgroundImage: NetworkImage(
                        'https://www.ienglishstatus.com/wp-content/uploads/2018/04/Anonymous-Whatsapp-profile-picture.jpg'),
                  ),
                  Padding(
                    padding: EdgeInsets.only(left: 10.0),
                    child: Column(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: &lt;Widget&gt;[
                        Text(
                          'Testing Name',
                          style: TextStyle(
                            fontSize: 22.0,
                            color: Colors.grey.shade800,
                          ),
                        ),
                        Text(
                          '@testing_username',
                          style: TextStyle(
                            fontSize: 13.0,
                            color: Colors.grey.shade800,
                          ),
                        ),
                      ],
                    ),
                  ),
                ],
              ),
            ),
  
            DefaultTabController(
              length: 3,
              child: Column(
                children: &lt;Widget&gt;[
                  TabBar(
                    tabs: &lt;Widget&gt;[
                      Tab(
                        icon: Padding(
                          padding: EdgeInsets.all(6.0),
                          child: Image.asset(
                            "assets/images/icons/butterlike.png",
                            color: Colors.grey.shade800,
                          ),
                        ),
                      ),
                      Tab(
                        icon: Padding(
                          padding: EdgeInsets.all(6.0),
                          child: Image.asset(
                            "assets/images/icons/butterlike.png",
                            color: Colors.grey.shade800,
                          ),
                        ),
                      ),
                      Tab(
                        icon: Padding(
                          padding: EdgeInsets.all(6.0),
                          child: Image.asset(
                            "assets/images/icons/butterlike.png",
                            color: Colors.grey.shade800,
                          ),
                        ),
                      ),
                    ],
                  ),
  
                  TabBarView(
                    children: &lt;Widget&gt;[
                      Container(
                        color: Colors.grey,
                      ),
                      Container(
                        color: Colors.green,
                      ),
                      Container(
                        color: Colors.purple,
                      ),
                    ],
                  ),
                ],
              ),
            )
          ],
        ),
      );
    }
  </code></pre>
  
  <p>I did try a variation of <a href="https://stackoverflow.com/a/50858058/7980921">this</a> but couldn't get it to work. </p>