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

is it possible to use a future in within the itemBuilder ? #123

Closed ben55j closed 2 years ago

ben55j commented 2 years ago

Hello,

The item data I am using for building my paginated list requires a second Firestore query to get fully displayed. The problem is that I can't figure out how to manage that, because the itemBuilder seems not accepting any future.

Do you have any example that could help with this ?

Thank you, Benjamin

vedartm commented 2 years ago

Hi @ben55j. Thanks for using the package. itemBuilder does not support future now. Instead, you can wrap each item with a FutureBuilder

Feel free to reopen this if you face this issue again.