-- 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
Ivan Matkov
05/31/2024, 3:51 PM
Why not just use Dialog itself?
r
rob42
05/31/2024, 3:53 PM
I'd like to change the scrim color animate the open/close
i
Ivan Matkov
05/31/2024, 3:56 PM
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
rob42
05/31/2024, 4:06 PM
aha, Popup was exactly what I was looking for! Thank you :)
👍 1
rob42
05/31/2024, 4:06 PM
I feel like the docs for Dialog (at least where I am, on compose desktop) should say "you probably want Popup!"