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 ?
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);