Description
Use case
See the Crane Material sample and Google I/O 2019
These both feature a bottom sheet that slides up (in the case of I/O, you select "Events" and the hit the "Filter" FAB) and scrolls.
With the I/O app, if you continue to swipe down when scrolled to the top, it will start to drag and then dismiss when a threshold is reached.
If the threshold is not reached (or you swipe upwards) then the bottom sheet will not be dismissed and it'll rebound to the top of the screen.
Proposal
I'd think this should be a part of DraggableScrollableSheet
as mentioned in #31739, but maybe it makes sense to bake the logic into the Bottom Sheet itself?
I've tried both modal and non-modal bottom sheets with and without the DraggableScrollableSheet
, and can't seem to make this work as is.
The current issue with the DraggableScrollableSheet
is that you can't have the sheet be maximized all the time. (Since, as I mentioned in #31739 (comment), any swipe will immediately dismiss the BottomSheet
rather than scroll the CustomScrollView
)