How to draw draw behind the system status bar in a Jetpack Compose Dialog

Viewed 926

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?

0 Answers
Related