I want to add a "modal" bottom sheet. I would like...
# compose
c
I want to add a "modal" bottom sheet. I would like it to turn the rest of the page dark, (like showing an actual modal dialog does). What are the ways to accomplish this? Seems like it's only possible if using a bottom sheet navigation destination?
s
Does
androidx.compose.material.ModalBottomSheetLayout
not fit your needs?
c
It doesn't draw over top everything like a regular modal. I know I've tried this months ago, but didn't know if there was some other known way by now.
s
Over top of everything
By everything I assume you mean that you are already deep inside the hierarchy of something, and you can’t simply hoist the
ModalBottomSheetLayout
up to the top to get this behavior of it being above “everything”. Then I am not sure 🤷‍♂️
o
It doesn’t draw over top everything like a regular modal
Then you may want to check this library 😇 https://github.com/oleksandrbalan/modalsheet
c
oh fuck yeah. this is exactly what i was looking for
o
#ShamelessPromo 😄
n
modalsheet
is just a lifesaver 😍
c
yeah. i love this. thank you so much @Oleksandr Balan
o
Kudos to the @Filip Wiesner who came up with an initial idea 👏
f
It was just a fun experiment. All props to you for actually making something usable out of it 😊 Now I am sitting on Tap target tutorial component and thinking about making a library out of it but I am too lazy :D
c
@Oleksandr Balan went to add this to my project but was stopped by our check-in bot because i added jitpack. Any chance you can move to maven?
s
Or copy the source directly in your project (for now) if the license allows such usage 😅
o
Sure, I will upload it during the weekend 👌 For now, yea, just copy-paste it, lib has only several files 😅
Now it should be also available through Maven 👌 https://repo1.maven.org/maven2/io/github/oleksandrbalan/modalsheet/
c
🙏