简体   繁体   中英

How to get the contacts which is only in firebase in flutter

This is user collection

I want get contact and show to the user only the contacts which is in firebase like Whatsapp

参考图像

There is an excellent documentation for that in Firebase docs.

Check the docs

Example for your collection can be

Firestore.instance.collection("users").get()

Remember its good practice to paginate large collection, from my perspective it seems your collection is going to be large. Pagination

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