Closed danieldaeschle closed 1 year ago
I came here to post exactly this issue!
Is there an update if there is a workaround or will be worked on any time soon?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
ping
wtf, why did it get closed?
I guess the bot is buggy. Anyway, working on more bottom sheet stuff right now so still a priority issue for me
Any news on this?
Might need to make a new issue and link to this one? This process is frustrating to say the least 😅
I'm using a migrated version of
ModalBottomSheetLayout
for material3.Everything works fine so far. But there is a use-case where I want to prevent the user from closing the BottomSheet.
Description I have a form in my BottomSheet.
Interrupting back press and clicking the close icon is easy but the other two ways to close the BottomSheet are not so easy to solve. I would like to display a Dialog to the user which asks him if he want to discard the data. If he presses yes, the BottomSheet can close, otherwise it should stay open (or reopen if the user dragged it down).
Is there a way to achieve my use-case without modifying the internal code too much?