title: Text and ListView in scroll behavior flutter
body: <p>I am experimenting with flutter and I came across with an issue. I have a text with my results derived from a service and a ListView (builder) displaying those results (as a card in order to have a nice box like layout).</p>
  
  <p>My goal is, as the user scrolls the list, the result portion of the page (text) to be disappeared. </p>
  
  <p>I tried SingleChildScrollView as described in <a href="https://docs.flutter.io/flutter/widgets/SingleChildScrollView-class.html" rel="nofollow noreferrer">https://docs.flutter.io/flutter/widgets/SingleChildScrollView-class.html</a> but it did not work.</p>
  
  <p>Screenshot: 
  <a href="https://i.stack.imgur.com/HFHnw.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>Any insights will be really helpful. Thanks in advance.</p>
  
  <p>Update(widget tree)</p>
  
  <pre><code> Widget build(BuildContext context) {
  return new Scaffold(
    body: new Column(
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: &lt;Widget&gt;[
        new Container(
          padding: EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 0.0),
          child: new RichText(
            text: new TextSpan(
              children: &lt;TextSpan&gt;[
                new TextSpan(
                  text: this.model == null
                      ? "0"
                      : this.model.length.toString(),
                  style: new TextStyle(
                    fontSize: 14.0,
                    fontWeight: FontWeight.bold,
                    color: Colors.black87,
                  ),
                ),
                new TextSpan(
                  text: ' Results',
                  style: new TextStyle(
                    fontSize: 14.0,
                    color: Colors.black87,
                  ),
                ),
              ],
            ),
          ),
        ),
        new Expanded(
          child: new RefreshIndicator(
            key: refreshKey,
            child: new ListView.builder(
              itemCount: this.model?.length,
              itemBuilder: (BuildContext context, int index) {
                final Model model= this.model[index];
                return new Card(child: new Text(model.id.toString()),);
              },
            ),
            onRefresh: _handleRefresh,
          ),
        ),
      ],
    ),
  );
  </code></pre>
  
  <p>}</p>