0

[![enter image description here][1]][1]please i want to covert this query snapshots to display on my list builder, i have been trying for hours to no avail, can some one please help am new to flutter and Firebase.

this the query, it runs fine when print to console

FirebaseFirestore.instance.collection("users").get().then((querySnapshot) {//users query
  querySnapshot.docs.forEach((result) {//loop all users
   FirebaseFirestore.instance 
        .collection("orders")
        .doc(result.id)
        .collection("user_orders")
        .where('driversuid', isEqualTo: user.uid)
        .get()
        .then((querySnapshot) { //orders query
      querySnapshot.docs.forEach((result) {//loop all their orders
        print(result.data());
      });
    });
  });
});

I get this as the result of the query from the console. [1]: https://i.stack.imgur.com/gOb3c.jpg

Arinzehills
  • 1,491
  • 10
  • 14

0 Answers0