How can I build custom UI that works like `Dialog(...
# compose
r
How can I build custom UI that works like
Dialog()
-- with a full-screen overlay/scrim in Compose? The source of Dialog does this by using
rememberComposeSceneLayer
, which is internal. Or put another way, how can I make a nested composable fill the screen, rather than being constrained to its parents constraints/z-order?
i
Why not just use Dialog itself?
r
I'd like to change the scrim color animate the open/close
i
Scrim color is customizable on Multiplatform, but it's not animated yet, true. Use Popup. You can find similar usage cases in some material3 components
r
aha, Popup was exactly what I was looking for! Thank you :)
👍 1
I feel like the docs for Dialog (at least where I am, on compose desktop) should say "you probably want Popup!"