title: Streambuilder issue - content not displaying (Closure: () => Map<String, dynamic> from: function ()) with firebase
body: <p>I've checked all the data and it seems like the data is going through, but not displaying. This code is part of what I used for an earlier version of Flutter (and the code worked) but after the update it stopped working. It appears that the application is receiving some sort of response from Firebase but not the data.</p>
  <p>I would like to be able to display the documents in my firebase collection.</p>
  <p>There doesn't seem to be any error currently.</p>
  <p>I've attached the code and console output.</p>
  <pre><code>class _Steambuilder2State extends State&lt;Steambuilder2&gt; {
    @override
    Widget build(BuildContext context) {
      return Container(
        child: StreamBuilder(
          stream: _firestore.collection(collectionName).snapshots(),
            builder: (BuildContext context, AsyncSnapshot&lt;QuerySnapshot&gt; snapshot) {
              if(!snapshot.hasData){
                return Center(
                  child: CircularProgressIndicator(),
                );
              }
              else {
                final foods = snapshot.data.docs;
                List&lt;Widget&gt; widList = [];
                  for (var food in foods){
                  Map map = food.data();
                  List&lt;dynamic&gt; flavanoids = map['nutrientList'];
                  String name = map['name'];
  
                  String calories = map['calories'];
                  print(food.data.toString());
  
                  widList.add(ButtonFood(height:100, child: Row(children: [Text(calories), Text(name)]), mapVar: flavanoids));
                }
                return ListView(
                  children: widList,
                  
  
                );
              }
  
  
  
  
  
  
            }
        ),
      );
    }
  }
  </code></pre>
  <pre><code>Closure: () =&gt; Map&lt;String, dynamic&gt; from: function () { [native code] }
  Closure: () =&gt; Map&lt;String, dynamic&gt; from: function () { [native code] }
  Closure: () =&gt; Map&lt;String, dynamic&gt; from: function () { [native code] }
  Closure: () =&gt; Map&lt;String, dynamic&gt; from: function () { [native code] }
  Closure: () =&gt; Map&lt;String, dynamic&gt; from: function () { [native code] }
  Closure: () =&gt; Map&lt;String, dynamic&gt; from: function () { [native code] }
  </code></pre>