title: ListView inside Column causes 'Vertical viewport was given unbounded height'
body: <p>I am new to flutter and having trouble with layouts.</p>
  
  <p>I want something like this:
  <a href="https://i.stack.imgur.com/8rf2s.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8rf2s.png" alt="a sticky header and a scroll view below"></a></p>
  
  <p>A sticky header and a scroll view below it.
  I thought of using Column widget with two children - first being the header and second being the ListView.</p>
  
  <p>Here is my code</p>
  
  <pre><code> Widget build(BuildContext context) {
   return Material(
     elevation: 8.0,
     child: Column(
       crossAxisAlignment: CrossAxisAlignment.start,
       children: &lt;Widget&gt;[
         Padding(
           padding: const EdgeInsets.all(16.0),
           child: Text(
             title,
             style:
                 Theme.of(context).textTheme.subhead.copyWith(fontSize: 18.0),
             textAlign: TextAlign.left,
           ),
         ),
         Divider(height: 4.0),
         ListView.builder(itemBuilder: (context, i) {
           return ListTile(
             title: Text("Title $i"),
             subtitle: Text("Subtitle $i"),
           );
         }),
       ],
     ),
   );
  }
  </code></pre>
  
  <p>I am getting the following error for it.</p>
  
  <pre><code>I/flutter ( 5725): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
  I/flutter ( 5725): The following assertion was thrown during performResize():
  I/flutter ( 5725): Vertical viewport was given unbounded height.
  I/flutter ( 5725): Viewports expand in the scrolling direction to fill their container.In this case, a vertical
  I/flutter ( 5725): viewport was given an unlimited amount of vertical space in which to expand. This situation
  I/flutter ( 5725): typically happens when a scrollable widget is nested inside another scrollable widget.
  I/flutter ( 5725): If this widget is always nested in a scrollable widget there is no need to use a viewport because
  I/flutter ( 5725): there will always be enough vertical space for the children. In this case, consider using a Column
  I/flutter ( 5725): instead. Otherwise, consider using the "shrinkWrap" property (or a ShrinkWrappingViewport) to size
  I/flutter ( 5725): the height of the viewport to the sum of the heights of its children.
  </code></pre>
  
  <p>I added made shrinkWrap of ListView true as mentioned in the message, but that didn't work either. </p>
  
  <p>The parent of this layout is a stack containing various such layout-pages, all of this layout pages being offstage expect the one user has selected.</p>
  
  <p>What am I doing wrong?</p>