title: Can't set ListView into LayoutBuilder Widget (Flutter)
body: <p>I need to have some structure like this</p>
  
  <p><a href="https://i.stack.imgur.com/rEKqo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rEKqo.png" alt="enter image description here"></a></p>
  
  <p>I use <code>LayoutBuilder</code> to get the height of content (between <em>App Bar</em> and <code>TabsBottomNavigation</code>). Here i build Profile Info Container and want to build ListView with some List Tiles, but when I try to build it in Layout Builder I have errors in console.</p>
  
  <p><a href="https://i.stack.imgur.com/ENXOp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ENXOp.png" alt="enter image description here"></a></p>
  
  <p>If I create <code>ListView</code> out of <code>LayoutBuilder</code> it works!</p>
  
  <p>Please help me to solve it.
  My code below:</p>
  
  <pre><code>Widget build(BuildContext context) {
      return LayoutBuilder(
        builder: (BuildContext context, BoxConstraints viewportConstraints) {
          return SingleChildScrollView(
            child: Container(
              child: Column(
                children: &lt;Widget&gt;[
                  Container(
                    height: viewportConstraints.maxHeight * .44,
                    color: Theme.of(context).primaryColor,
                    padding: EdgeInsets.only(bottom: 2),
                    child: Align(
                      child: Column(
                        mainAxisAlignment: MainAxisAlignment.center,
                        children: &lt;Widget&gt;[
                          _buildProfileImage(context),
                          SizedBox(height: 17),
                          Text(userName)
                        ],
                      ),
                    ),
                  ),
                  Expanded(
                    child: ListView(
                      children: &lt;Widget&gt;[
                        ListTile(
                          leading: Icon(Icons.print),
                          title: Text('asdad'),
                        )
                      ],
                    ),
                  )
                ],
              ),
            ),
          );
        },
      );
    }
  </code></pre>