title: Scrolling data in ListView
body: <p>I'm trying to create a ListView that automatically scrolls its lines. I used as a basis a routine available here at the Forum. My problem is that it is in the message "RenderBox was not laid out" (attached image). </p>
  
  <p>The ListView worked fine until I included SingleChildScrollView. </p>
  
  <p>Can someone help me?<a href="https://i.stack.imgur.com/bFbng.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bFbng.png" alt="enter image description here"></a></p>
  
  <pre><code>  @override
    Widget build(BuildContext context) {
      return new Scaffold(
        appBar: new AppBar(
          title: new Text('A Idade do Lobo'),
          elevation: 0.0,
          backgroundColor: COLOR_MAIN,
        ),
        body: NotificationListener(
          onNotification: (notif) {
            if (notif is ScrollEndNotification &amp;&amp; scrollOn) {
              Timer(Duration(seconds: 1), () {
                _scroll();
              });
            }
            return true;
          },
          child: SingleChildScrollView(
            controller: _scrollController,
            child: new Column(
              children: &lt;Widget&gt;[
                new Center(
                  child: new Row(
                    mainAxisSize: MainAxisSize.min,
                    children: &lt;Widget&gt;[
                      new RaisedButton(
                        onPressed: _showScrollPickerDialog,
                        child: Text('Rolagem ${_scrollSpeed}'),
                      ),
                      new RaisedButton(
                        onPressed: _showTomPickerDialog,
                        child: Text('TOM ${_tom}'),
                      ),
                    ],
                  ),
                ),
                new Expanded(
                  child: new ListView.builder(
                    itemCount: _songDetails.length,
                    itemBuilder: (context, index) {
                      return new Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children: &lt;Widget&gt;[
                          Padding(
                            padding: new EdgeInsets.all(5.0),
                            child: new RichText(
                              text: TextSpan(children: [
                                new TextSpan(
                                  text: '${_songDetails[index].line}',
                                  style: _getStyle(
                                    _songDetails[index].type,
                                  ),
                                  recognizer: new TapGestureRecognizer()
                                    ..onTap = () {),
  
                                ),
                              ]),
                            ),
                          ), 
                        ],
                      );
                    },
                  ),
                ),
              ],
            ),
          ),
        ),
      );
    }
  
  </code></pre>