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

A way to save scroll position of the list when prepending items to the top of the list #71

Open
nikita488 opened this issue Sep 12, 2024 · 1 comment

Comments

@nikita488
Copy link

Is there any way right now to save scroll position of the list when prepending items to the top of the list?
Right now adding let's say 50 items to the very beginning of the list resets scroll position to 0.0 (Like in ListView, and every other list implementations).
Is there a way to precalculate extent for that added 50 items and add with result position to stay in the previous position?

@xsahil03x
Copy link

Hey @nikita488 , you can take a look at super_paging's BidirectionalPagingListView. It tackles this exact problem with a custom ListView implementation.

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

2 participants