EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
626 stars 213 forks source link

Pagination inside CustomScrollView and TabBar #265

Closed lironiz closed 7 months ago

lironiz commented 1 year ago

Hi, I have a CustomScrollView, that has a title widget and a TabBar widget. the 2 tabs content is a PagedGridView. the problem is the 'PageRequestListener' calls all the pages right from the beginning, and not in response to scrolling. after it finishes loading all the pages, the scroll works as expected, so there's just the pagination-not-really-paginating issue. is this a known issue? is there a known fix for this? thank you

prologikus commented 1 year ago

just use pull/252/head, devs seems busy

lironiz commented 1 year ago

just use pull/252/head, devs seems busy

@prologikus thanks. did you mean I should use PagedMasonrySliverGrid? I saw that you reported a bug..

prologikus commented 1 year ago

@lironiz yes, i still use that despite the bug i found, you can avoid it by not using very very long items, hope there was a better solution

clragon commented 1 year ago

The problem you are encountering is most likely resulting from you setting shrinkWrap: true on your PagedGridView. This will result in all pages being loaded immediately. To use a Paged view inside of a sliver protocol like CustomScrollView instead use the PagedSliverGrid.

OnyemaAnthony commented 1 year ago

@lironiz and @prologikus i get this same bug when i use singleChildScrollview or any scroll widget, will pull/252/head also fix it or it can only fix for CustomScrollview? like when i put a PagedListView or PagedGridView inside any scroll widget it loads everything from start and does not not respond to scroll pagination

omarshokry1811 commented 8 months ago

so ? did they reslove that ? @prologikus @lironiz

prologikus commented 8 months ago

I use this pr in my production, i don't think so

clragon commented 7 months ago

The problem you are encountering is most likely resulting from you setting shrinkWrap: true on your PagedGridView