Flutter & firebase – StreamBuilder not loading


My code was working fine. As soon as I added isEqualTo, the app keeps on loading and loading.

I am guessing perhaps I do have to do something with RULES in FirebaseFirestore. Not sure though. And also I know nothing of rules.

  stream: _firebaseFirestore
    .where('uploadedBy', isEqualTo: _user!.uid)
    .orderBy('date', descending: true)


Inside your builder

if (snapShot.hasError) {
  return new Text('Error: ${snapShot.error}');

then it will probably print you the link in which you will be able to build your index with. If that’s not the case make sure there exists a data that satisfies your query.

Answered By – Henok

Answer Checked By – Willingham (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *