title: how to get snapshot all in an array flutter firebase cloud
body: <p>I am trying to get all of the data info. in my firebase cloud firestore but am still struggling with the <strong>code:</strong></p>
  <pre><code>StreamBuilder&lt;DocumentSnapshot?&gt;(
    stream: FirebaseFirestore.instance
        .collection(&quot;groups&quot;)
        .doc(groupId)
        .snapshots(),
    builder: (context, snapshot) {
      return GridView.builder(
            gridDelegate:
            const SliverGridDelegateWithFixedCrossAxisCount(
         crossAxisCount: 2,
       ),
  
            itemBuilder: (context, index) {
              return SizedBox(
                child: snapshot.data!.get('members')[index][0],
                height: 20,
                width: 10,
              );
            });
    }),
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ylnxi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ylnxi.png" alt="enter image description here" /></a>
  <strong>I want to snapshot all of this and display it in my app</strong></p>
  <p>I don’t think I did it right cuz this is the error that I get</p>
  <blockquote>
  <p>ErrorDescription(
  'Viewports expand in the scrolling direction to fill their container. '
  'In this case, a vertical viewport was given an unlimited amount of '
  'vertical space in which to expand. This situation typically happens '
  'when a scrollable widget is nested inside another scrollable widget.',</p>
  </blockquote>