title: How to get data from firestore using flutter streams
body: <pre><code>StreamBuilder&lt;QuerySnapshot&gt;(
                stream: _fireStore.collection('messages').orderBy('creation',descending: 
                                                                                true).snapshots(),
                // ignore: missing_return
                builder: (context, snapshot) {
                  if (!snapshot.hasData) {
                    return Center(
                      child: CircularProgressIndicator(
                        backgroundColor: Colors.lightBlueAccent,
                      ),
                    );
                  }
  //                print('i have data');
                  print(snapshot.data.documents);
  </code></pre>
  
  <p>print(snapshot.data.documents); is printing null value.
  'creation' is a timestamp field added into the fire store.</p>
  
  <p><a href="https://i.stack.imgur.com/wVPTW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wVPTW.png" alt="this is the image of my data base"></a></p>
  
  <p><a href="https://github.com/umakanth-pendyala/Chat-app-with-flutter-and-fire-base" rel="nofollow noreferrer">https://github.com/umakanth-pendyala/Chat-app-with-flutter-and-fire-base</a> 
  is the link to my project in Github. And the code snippet is from the chat_screen page in the lib folder</p>