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

Mis-sync with scrollcontroller when physics is AlwaysScrollableScrollPhysics #424

Open
etaghiye opened this issue Sep 2, 2024 · 1 comment

Comments

@etaghiye
Copy link

etaghiye commented Sep 2, 2024

When dragging down the cupertino bottomsheet down the listview inside the bottomsheet also gets dragged down.
The difference gets bigger as you drag down. Could we fix this and totally sync the behavior.

Also, in all good applications I have seen, when starting scrolling up the inner listview, when scroll is not at upper edge, it should not drag down the bottomsheet. The bottomsheet should get dragged down only when the scroll of its inner listview is at the upper edge. So if a user has the listview scrolled somewhere in the middle, and then wants to close the bottomsheet, he will need one tap and scroll up, then release the tap, and then do another tap and scroll up.

@lucis-yg
Copy link

lucis-yg commented Sep 3, 2024

I encountered the same issue, and I found that it was caused by the behavior of the physics, as it defaults to using BouncingScrollPhysics. So, I changed it to ClampingScrollPhysics, which indeed solved the aforementioned problem. However, this introduced a new issue: while I can drag down normally, when I try to drag back up, it immediately jumps to the top. This issue has been bothering me for two days.

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