I already know about the Accompanist library to change the color of navigation and status bar.
The goal is to hide them completely.
CodePudding user response:
SystemUiController
has a getter/setter method for system bar visibilities:
val systemUiController: SystemUiController = rememberSystemUiController()
systemUiController.isStatusBarVisible = false // Status bar
systemUiController.isNavigationBarVisible = false // Navigation bar
systemUiController.isSystemBarsVisible = false // Status & Navigation bars