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

[Question] Is it possible to acheive a SliverList behavior with this package while using multiple PaginatedFirestore? #104

Closed dennysmvn closed 2 years ago

dennysmvn commented 2 years ago

Hi there, first of all thanks for your package!

I've created a page view with two PaginatedFirestore widgets, both with PaginateBuilderType.listView.

But now I wish to scroll the entire view, while also been able to scroll each one of listviews created by PaginatedFirestore.

Is it possible? I've been trying to use SliverList, CustomScrollView but all of their children needs to be a SliverRender...

I know this is not StackOverflow and I think it is possible to achieve this, but I'm realy struggling to find a way.

Thx!

vedartm commented 2 years ago

Hi @dennysmvn. Thanks for using the package.

PaginatedFirestore is built with CustomScrollView. You find resources online to check how to use CustomScrollView inside a CustomScrollView

WouterVandenputte commented 2 years ago

I'm having the same question. I have a 'large' sliver appbar which for which i want to close the upper half when scrolling down and open it again on the first scroll up. I have got it to work with just a list of 100 Text widgets, but cannot make it work with the PaginatedFirestore widget. Probably because it scrolls on its own and cannot be part of the larger picture.

@dennysmvn Did you manage to find a solution?

vedartm commented 2 years ago

@WouterVandenputte you can put your appbar in the header and use the PaginatedFirestore as the base scroll.