简体   繁体   中英

Flutter - Firestore stream snapshot with where not streaming when clause arguments are updated

My flutter app is using Firestore as a database. I am listening on a stream for data using this:

Firestore.instance.collection('cars')
          .where("free", isEqualTo: true).snapshots()

The problem with this is that when I change the field free of a car with free: false the stream is not updating, probably because of the where("free", isEqualTo: true) but if I change the field to free: true the stream sends updates...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM