Home > database >  Flutter how to hide system navigation bar
Flutter how to hide system navigation bar

Time:04-14

How to hide system navigation bar in flutter? I have tried hiding it with

 SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
 overlays: [SystemUiOverlay.top]);

But when ever a touch happens on the app, the system navigation popups first. I need to only display the statusbar. How can I turnoff the system navigation bar ?

enter image description here

CodePudding user response:

Use setEnabledSystemUIMode and provide SystemUiMode.manual as shown below:

SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [ SystemUiOverlay.top ]);

CodePudding user response:

SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
  • Related