I need help, the background gray overlay for dialo...
# compose
k
I need help, the background gray overlay for dialog jetpack compose is not working. The code is straight from the documentation. I need it too look like a popup.
i
As far as I remember it was emulator bug for all dialogs and unrelated to compose https://issuetracker.google.com/issues/289117017
👀 1
s
Yeap, try it with a real device to confirm. I’ve experienced this too
k
Thanks for confirming, unfortunately I don't have a real device right now.
m
Out of interest, have you tried putting the card in a Box and using
Modifier.fillMaxSize()
for the Box? Another thought is it could be related to card elevation, so maybe try with no elevation.
n
yes I confirm that the issue with dialogs seems to happen exclusively on emulators, on real devices it works just fine 👍🏻
g
Maybe HW Layers are disabled?
k
@Mark I tried to put it inside the box, modifier is set to fill max width, It is still the same on my end.
Is it expected for these properties to also not work?
Dialog(
onDismissRequest =
*{* dismiss.value = true *}*,
properties = DialogProperties(dismissOnBackPress = true, dismissOnClickOutside = true) )
{
n
nope, they should work as expected
how are you managing the dismiss value?
k
@Nikolas Guillen Leon ah yeah, it's working. I figured out that I am testing a different compose. sorry ✌️
n
no problem mate 😁
215 Views