vedartm / paginate_firestore

A flutter package to simplify pagination with firestore data 🗃
https://pub.dev/packages/paginate_firestore
MIT License
113 stars 136 forks source link

How to work with multiple queries #90

Closed Nader2004 closed 3 years ago

Nader2004 commented 3 years ago

Hello,

Let's say I have two queries in the app :

Query query1;
Query query2;

PaginateFirestore(
 query: query1 && query2,
)

I am searching for a way to combine them together but i couldn't find a way. Is there any suggestion. It could be even more helpful if you added a pramater like documentSnapshots :

PaginateFirestore(
 documentSnapshots:  ,
)

Because this could make it easier in terms of the problem context to combine now multiple documentSnapshots.

Thanks!

vedartm commented 3 years ago

Hi @Nader2004. If you are comfortable with using documentSnapshots, you can go with the package pagination_view. I made it for a general use case.

vedartm commented 3 years ago

Closing this as it is a duplicate of #58