modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

Mis-sync with scrollcontroller when physics is AlwaysScrollableScrollPhysics

Open etaghiye opened this issue 1 year ago • 1 comments

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.

etaghiye avatar Sep 02 '24 13:09 etaghiye

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.

lucis-yg avatar Sep 03 '24 12:09 lucis-yg