title: Fetching particular data from firestore using Flutter
body: <p>I am using Firestore as a database with my Flutter Application. I am storing data in the following way:</p>
  <p><img src="https://i.stack.imgur.com/DT1Jh.png" alt="My FFirestore Database Image" /></p>
  <p>I want to get data of shop based upon document ID(which is the id of currently logged in user). I am using following code but unable to fetch particular data.
  And using stream builder for to display data.</p>
  <pre><code>StreamBuilder(
            stream: Firestore.instance
                .collection('Shops')
                .document(user.uid)
                .snapshots(),
            builder: (context, snapshot) {
              print(snapshot.hasData);
              if (snapshot.hasData) {
                return ListView.builder(
                    physics: NeverScrollableScrollPhysics(),
                    shrinkWrap: true,
                    scrollDirection: Axis.vertical,
                    itemCount: snapshot.data.documents.length,
                    itemBuilder: (context, i) {
                      return SingleChildScrollView(
                        child: Column(children: &lt;Widget&gt;[
                          _buildRow(context, snapshot, i),
                          SizedBox(
                            height: 20,
                          ),
                          _buildShopDetails(context, snapshot, i),
                          _buildReviewsRatingCard(snapshot, i),
                        ]),
                      );
                    });
              } else {
                return CircularProgressIndicator();
              }
            },
          ),
  </code></pre>
  <p>So kindly help me in solving my problem.</p>