[ModalBottomSheet] - Paddings passed to Sheet()
blocks dismissal of the sheet when clicked
#49
Labels
bug
Something isn't working
Problem
You do already support
dismissOnClickOutside
in bottom sheets. In your demos you apply styles that add some padding around the content sheet on larger screens. In this case though, it's currently not possible to handle this padding as "background which closes the sheet on click". This means, that I have to write my own scrim composable that handles the touches and closes the sheet if I want to achieve that touching the padding around the content is handled like a touch on the scrim. Not a big thing, but still, as you already supportdismissOnClickOutside
I think this is an unnecessary restriction.Suggestion
My suggestion would be to change the API of your scrim and let it wrap its content instead of placing the scrim and the sheet side by side. In this case, the scrim could support content padding and could take care of handling the clicks on the padding as well.
OLD
New
Place the sheet inside the scrim box.
The text was updated successfully, but these errors were encountered: