-
Notifications
You must be signed in to change notification settings - Fork 503
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
ScrollablePositionedList can not jump to end without animation #151
Comments
This is observable with the example app: tapping "Jump to 0" with an alignment > 0 when already scrolled to the top triggers a bounce animation, as does "Jump to 5000" (the end) with an alignment < 1 when already scrolled to the end. |
If what you want to do is only jump to one particular item, so maybe this workaround I made can help. There's a restriction of |
Can you calculate the items below the center item or above according viewport height before the animation? |
@DamirDautov Thank you for your workaround solution.This solved my problem.Otherwise,I need to calculate each dynamic list item to scroll to correct offset.You saved my time. |
…t jump to end without animation google#151
Any news about this? |
Problem description
Enviroment
Expected behavior
use
itemScrollController.jumpTo(...)
should not trigger animationSample code
The text was updated successfully, but these errors were encountered: