skip to Main Content

Flutter error : Failure to access data inside a snapshot fetched from Firebase Firestore

Using Flutter 3.3.9, I fetch a record from my Firestore database using a Streambuilder. I use the following code segment to do this: StreamBuilder<Object>( stream: FirebaseFirestore.instance .collection('users') .doc(userId) .snapshots(), builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return Text('Loading...');…

VIEW QUESTION
Back To Top
Search