-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to set initial Scroll Position #58
Comments
This is unfortunately tricky to do, because part of the process of jumping to index depends on So the Alternative to this is indeed registering post frame callback, for example in the |
Thanks you for quick response and confirmation! Post framework call does work with but rebound issue, which does not fit my use case. May be I need to combine this with some other package like scroll_to_index, which I can be used for initial position. |
Unfortunately, scroll_to_index suffer from same issue of rebound. So no luck with that. |
Rebound? JumpToItem should not cause rebound in latest version (0.4.1). If it does it would be a bug. Can you provide a reproducible example with the rebound? |
The rebound occurs only when first time the list is build at init. Once build, the jumpTo works as expected. So this issue is only setting initial position, when first time list is build, where full list is laid out first and then jumpto is executed (in reversed list). |
I'd like to add a +1 to this feature request.
JumpToItem(item 48) is called.
That's very much acceptable. ScrollController's current |
I have been using the scrollable_positioned_list and wanted to give a go to super_sliver_list. I have set this up and I have a function as below to jump to a specific item when first time list is built.
However, I see a rebound i.e. first the whole list is built, and then i am takin to correct index (as discussed in #35).
I was expecting that the list exactly points to the index I wanted the list to be at at the when a list is build. This is something similar to what we use in ScrollController(initialScrollOffset: item height *index).But because I have variable heights, I cannot use ScrollController(initialScrollOffset: item height *index).
What I was expecting is, that, there is a constructor parameter called "initialPosition", which when provided lets the SuperSilverList to set that as first position in ListController or Scroll Controller.
I was wondering if this is an issue or if I am doing anything not correct. Thanks for your help.
And when i simply use function below, it does not work as (I suspect it require list to be build)
The text was updated successfully, but these errors were encountered: