Home > Software engineering >  How to hide navigationbar and statusbar in jetpack compose?
How to hide navigationbar and statusbar in jetpack compose?

Time:10-24

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
  • Related