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?
DialogFragment
. I was hoping that Jetpack Compose would also offer a way to achieve that behavior. – BoneyusePlatformDefaultWidth = false
so there seems to be some bugs with this. – Cognition