Has anyone had any luck making a full screen dialo...
# compose
c
Has anyone had any luck making a full screen dialog in compose? Meaning the statusbar and system navbar are either hidden and the dialog content draws inside those areas or they're shown but the color matches the dialog content? Currently I'm trying the ladder but having a problem setting the color of the statusbar/navbar back to what it was before I changed it.
Update: There was some weirdness because I was using an emulator. On a real device it behaves a bit better. I'm resetting my statusbar/navbar by setting them back to the apps default theme when I set edgeToEdge.
a
Does the color of the system bars not change automatically?
k
Take a look how it works here: https://terrakok.github.io/Compose-Multiplatform-Wizard/ I implemented the system bar colour changing when user changes a theme
a
@Konstantin Tskhovrebov I just tested, for android you have to manually react for system bars color change, in ios it does it automatically, why did you add this block for ios? what does this solve?
image.png
i tested with it and without it and the result seems to be the same
k
Because the theme can be set in the app
n
https://stackoverflow.com/a/75768025/15486462 I've tried this before and it works for me
very nice 1