title: AppBar with a ListView (Flutter)
body: <p>I'm a big beginner with Flutter and I followed a tutorial to make a ListView with pictures. However, I'm a bit lost in the code and I don't know where to implement my AppBar. I've already tried several times but never succeeded. I hope you'll be able to help me, here's the code:</p>
  <pre><code>import 'package:flutter/material.dart';
  import 'package:cached_network_image/cached_network_image.dart';
  import '../recyclerview/data.dart';
  
  
  class ListViewExample extends StatefulWidget {
    @override 
    State&lt;StatefulWidget&gt; createState() {
      return new ListViewExampleState(
      );
    }
  }
  
  class ListViewExampleState extends State&lt;ListViewExample&gt;{
    List&lt;Container&gt; _buildListItemsFromItems(){
      int index = 0;
      return item.map((item){
  
        var container = Container(
          decoration: index % 2 == 0?
          new BoxDecoration(color: const Color(0xFFFFFFFF)):
            new BoxDecoration(
              color: const Color(0xFFFAFAF5)
            ),
          child: new Row(
            children: &lt;Widget&gt;[
              new Container(
                margin: new EdgeInsets.all(5.0),
                child: new CachedNetworkImage(
                  imageUrl: item.imageURL,
                  width: 200.0,
                  height: 100.0,
                  fit: BoxFit.cover,
                ),
              ),
  
              new Row(
                mainAxisAlignment: MainAxisAlignment.center,
                  children: &lt;Widget&gt;[
    
                  new Text(
                      item.title,
                      style: new TextStyle(),
                    ),
                  new Text(
                      item.description,
                    ),
  
                  ]
              )
              
  
            ],
          )
        );
  
        index = index + 1;
        return container;
      }).toList();
    }
    @override
    Widget build(BuildContext context) {
      return new ListView(
        children: _buildListItemsFromItems(),
      );
    }
  }
  </code></pre>
  <p>If you need more resources I'll send you this, Thank you.</p>
  <p><strong>Update</strong>: I have added the <code>AppBar</code> at outside of the <code>ListView</code> in the <code>Scaffold</code></p>