title: Adding data from API as new entry to ListView
body: <p>I'm getting data from an API <code>productObject</code> and display them in the build widget as follows:</p>
  <pre><code>  Widget build(BuildContext context) {
      if (_sharedText != null) {
        return Scaffold(
          appBar: AppBar(
            title: Text(&quot;Thank you&quot;),
            backgroundColor: Colors.blueGrey.shade900,
          ),
          backgroundColor: Colors.blueGrey.shade400,
          body: Center(
            child: FutureBuilder&lt;ProductInformationModel&gt;(
                future: productObject(),
                builder: (BuildContext context, AsyncSnapshot&lt;ProductInformationModel&gt; snapshot) {
                  if (snapshot.hasData) {
                    return
                      ListView.builder(
                          itemCount: 2, //just a number to display at least the result
                          itemBuilder: (BuildContext context, int index) {
                            return Container(
                              //height: 75,
                              child: Center(
                                child: midView(snapshot),
                              ),
                            );
                          }
                      );
                  } else if (snapshot.hasError) {
                    return Container(child:
                    Text(&quot;${snapshot.error}&quot;));
                  } else {
                    return Container(
                      child: Center(child: CircularProgressIndicator(),),
                    );
  </code></pre>
  <p>This is ok so far, but what I want is that every time the API is called again the present displayed API output will remain displayed on the screen and the new called API output will be visible below the present output.
  So each API call should be one list entry without deleting the former data from the API.</p>
  <p>An example of the productObject:</p>
  <pre><code>  Future&lt;ProductInformationModel&gt; productObject({String urlName}) async {
      try {
        return new Network().getProductInformation(urlName: _sharedText);
  
      } catch (e) {
        print(&quot;Image not found: $e&quot;);
      }
    }
  </code></pre>
  <p>And I call the API like this:</p>
  <pre><code>if (response.statusCode == 200) {
        model (ProductInformationModel from product_information_model.dart
        print(&quot;image data: ${response.body}&quot;);
        return ProductInformationModel.fromJson(json.decode(response.body));
      }else {
        throw Exception(&quot;Error getting image info&quot;);
      }
  </code></pre>
  <pre><code>Widget midView(AsyncSnapshot&lt;ProductInformationModel&gt; snapshot) {
    var productName = snapshot.data.objects[0].title;
    var productImage = snapshot.data.objects[0].images[0].url;
    var api_type = snapshot.data.request.api;
    var pageUrl_type = snapshot.data.request.pageUrl;
    Container midView = Container(
      child: Padding(
        padding: const EdgeInsets.all(14.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: &lt;Widget&gt;[Text(&quot;$productName, $productImage&quot;,
          style: TextStyle(
            fontWeight: FontWeight.bold,
            fontSize: 18,
            color: Colors.black87
          ),),
  </code></pre>
  <p>I think I need the <code>setState()</code> but where do I set it?
  Do I need to create an empty list before?</p>
  <p>Thanks a lot, I'm new to flutter and struggle with this.</p>