This has likely been asked before, but we’re a hyb...
# compose-android
m
This has likely been asked before, but we’re a hybrid app that still has tons of existing XML based UI, including fragments. Those fragments are slowly being migrated to compose. We’re run into limitations with modal bottom sheets, in that they really need to be the top most view in the hierarchy or they cannot present the scrim over all the content. I’m curious what people are doing in this case. Are you using a bottom sheet dialog fragment and just not using ModalBottomSheetLayout?
c
but we're waiting for m3 modal sheets to be a bit more stable since they're truly modal unlike m2 impl
m
It's an interesting library. I ended up mimicing the behavior of dialogs (modal sheet is up if the composable is in the composition). Basically i find the content view, add a ComposeView with the same size, and put the ModalBottomSheetLayout inside of it. I then have a callback for what do do on clicking on the scrim or back buttons. it's up to the caller to change state to remove it from the composition.