I disabled fitSystemWindows via WindowCompat.setDecorFitsSystemWindows(window, false) to draw behind the status bar and I am using the insets accompanist library to get the respective insets for adding padding to specific composables.
However, if I show a fullscreen dialog, the dialog still has padding to the system- and navigation bar and refuses to draw behind the status bar.
The Dialog looks like the following snippet:
Dialog(
onDimissRequest = {},
properties = DialogProperties(usePlatformDefaultWidth = false)
) {
// ...
}
Is there any additional setting required in order to also let the dialog draw behind the system's status bar?
Maybe ModalDrawerLayout can help ?
ModalDrawerLayout(
drawerContent = {
// smth, idk
},
bodyContent = {
Dialog(
onDismissRequest = {},
properties = DialogProperties(usePlatformDefaultWidth = false)
) {
// Dialog content here
}
}
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With