Unable to view FirestoreDB data

  1. I’ve setup a collection named “Board” through the Firestore DB with two documents in it. I see the reads to the DB through the usage tab but I am unable to view the results in the app. It keeps showing the circular indicator implying no data. Please let me know what I am doing wrong. Thanks.

  2. Here’s the code I have -

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Community Board"),
      ),
      body: StreamBuilder(
          stream: fireStoreDb,
          builder: (context, AsyncSnapshot snapshot){
          //  DocumentSnapshot doc = snapshot.data;
            if (!snapshot.hasData) return CircularProgressIndicator();
              return ListView.builder(
              itemCount: snapshot.data.documents.length,
                itemBuilder: (context, int index){
                return Text(snapshot.data.documents[index]['title']);
            });
      }),
    );
  } ```