title: How to redraw grid of widgets in flutter.io after receiving new items from network?
body: <p>I'm modifying Pesto example <a href="https://github.com/flutter/flutter/blob/76844e25da8806a3ece803f0e59420425e28a405/examples/flutter_gallery/lib/demo/pesto_demo.dart" rel="nofollow noreferrer">https://github.com/flutter/flutter/blob/76844e25da8806a3ece803f0e59420425e28a405/examples/flutter_gallery/lib/demo/pesto_demo.dart</a> to receive new recipes from the net, by adding the following function:</p>
  
  <pre><code>  void loadMore(BuildContext context, query) {
      HttpClient client = new HttpClient();
      client.getUrl(Uri.parse("http://10.0.2.2:5000/search/" + query ))
          .then((HttpClientRequest request) {
        return request.close();
      })
          .then((HttpClientResponse response) {
        // Process the response.
        response.transform(UTF8.decoder).listen((contents) {
          // handle data
          var decoded = JSON.decode(contents);
          var rec = new Recipe(
              name: decoded['title'],
              author: decoded['author'],
              professionIconPath: 'images/1.png',
              description: decoded['description'],
              imageUrl: 'http://example.jpg',
          );
          kPestoRecipes.add(job);
          //Navigator.push(context, new MaterialPageRoute&lt;Null&gt;(
          //    settings: const RouteSettings(name: "/"),
          //    builder: (BuildContext context) =&gt; new PestoHome(),
          //));
        });
      });
    }
  </code></pre>
  
  <p>and I binded loading additional recipe to clicking interface button:</p>
  
  <pre><code>floatingActionButton: new FloatingActionButton(
                  child: new Icon(Icons.edit),
                  onPressed: () {
                    scaffoldKey.currentState.showSnackBar(new SnackBar(
                        content: new Text('Adding new recipe')
                    ));
                    loadMore(context, "test");
                  },
              ),
  </code></pre>
  
  <p>But how do I redraw home page when new recipe received? I've tried to 
  the part with Navigator you've seen commented out, but it didn't work. I also tried </p>
  
  <pre><code>new PestoDemo();
  </code></pre>
  
  <p>but it showed new recipe only for a moment and didn't feel like a proper way to do re-drawing. </p>