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

List<DocumentSnapshot> instead of Query #44

Closed jenniestrongbow closed 3 years ago

jenniestrongbow commented 3 years ago

Hi,

Would it be possible for you to add a feature that allows us to use a List of DocumentSnapshot instead of the Query type ?

Thanks

Jennie

vedartm commented 3 years ago

You mean instead of query parameter you want to send a list of document snapshot? Could you please explain with example?

jenniestrongbow commented 3 years ago

Hi,

Your (fantastic) paginate package has a query attribute that only accepts a Query type. Instead, I'd like to be able to use a List < DocumentSnapshot > type instead.

Thanks!

vedartm commented 3 years ago

Glad you like the package.

Do you mean you will make the query separately and just use the result in the pagination widget?

jenniestrongbow commented 3 years ago

Yes, the fact that the package is limited to a Query type is problematic to me as I'd like to use List types. Thanks

vedartm commented 3 years ago

This can be worked on. Please wait for the next version.

jenniestrongbow commented 3 years ago

Fantastic!!! Looking forward to testing it. Thanks!

onethao commented 3 years ago

any update for this?

vedartm commented 3 years ago

@jenniestrongbow Sorry I forgot to mention. There is a package I made that helps with general pagination which is not tightly coupled with Firestore. Its called pagination_view - https://pub.dev/packages/pagination_view.

Here you can use DocumentSnapshot in the place of any object. Let me know if this helps.

vedartm commented 3 years ago

Hope your issue is resolved. Feel free to reopen this if you face any similar issues.

kiloki-official commented 3 years ago

Thanks Vedartm, I LOVE your packages. Thanks a million!