implementation "com.google.accompanist:accompanist-systemuicontroller:0.27.0"
Theme.kt add this
val systemUiController = rememberSystemUiController()
if(darkTheme){
systemUiController.setSystemBarsColor(color = colorScheme.background,darkIcons = false)
systemUiController.setNavigationBarColor( color = colorScheme.background,darkIcons = false)
}else{
systemUiController.setSystemBarsColor(color =colorScheme.background,darkIcons = true)
systemUiController.setNavigationBarColor( color =colorScheme.background,darkIcons = true)
}
MaterialTheme(
colorScheme = colorScheme,
typography = Typography,
content = content
)
Done