Light status bar color bug
Closed this issue · 2 comments
maltsev-gorskij commented
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.
I tried to use
setIsStatusBarsVisible(true)
and it worked and StatusBar is visible again.
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)
}
}
mori-atsushi commented
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
maltsev-gorskij commented
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!