Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination inside CustomScrollView and TabBar #265

Closed
lironiz opened this issue Apr 30, 2023 · 8 comments
Closed

Pagination inside CustomScrollView and TabBar #265

lironiz opened this issue Apr 30, 2023 · 8 comments

Comments

@lironiz
Copy link

lironiz commented Apr 30, 2023

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
Copy link

just use pull/252/head, devs seems busy

@lironiz
Copy link
Author

lironiz commented Apr 30, 2023

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
Copy link

@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
Copy link
Collaborator

clragon commented Aug 17, 2023

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
Copy link

OnyemaAnthony commented Oct 7, 2023

@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
Copy link

so ? did they reslove that ?
@prologikus @lironiz

@prologikus
Copy link

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

@clragon
Copy link
Collaborator

clragon commented Feb 19, 2024

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

@clragon clragon closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants