Combine streams from Firestore in flutter
问题 I have been trying to listen to more than one collection from Firestone using a StreamBuilder or something similar. My original code when I was working with only one Stream was: import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; class List extends StatefulWidget{ ///The reference to the collection is like ///Firestore.instance.collection("users").document(firebaseUser.uid).collection("list1").reference()