mori-atsushi/insetsx

Light status bar color bug

Closed this issue · 2 comments

Looks like i stumbled upon bug when setting StatusBar color to white

val windowInsetsController = rememberWindowInsetsController()
LaunchedEffect(Unit) {
    windowInsetsController?.apply {
        setStatusBarContentColor(dark = false)
        setNavigationBarsContentColor(dark = false)
    }
}

On Android build everything is fine. In iOS simulator, when i use dark = false, status bar dissapearing.
image

I tried to use
setIsStatusBarsVisible(true)

and it worked and StatusBar is visible again.
image

So for Light colors this config must be used, which is looks like bug.

    val windowInsetsController = rememberWindowInsetsController()
    LaunchedEffect(Unit) {
        windowInsetsController?.apply {
            setStatusBarContentColor(dark = false)
            setNavigationBarsContentColor(dark = false)
            setIsStatusBarsVisible(true)
        }
    }

Thank you for your report. I have released a fixed version, v0.1.0-alpha08.
https://github.com/mori-atsushi/insetsx/releases/tag/v0.1.0-alpha08

Thank you for your report. I have released a fixed version, v0.1.0-alpha08. https://github.com/mori-atsushi/insetsx/releases/tag/v0.1.0-alpha08

Thank you!