Febin Johnson
Febin Johnson

Reputation: 382

Flutter how to hide system navigation bar

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

Upvotes: 0

Views: 2525

Answers (1)

Maqsood
Maqsood

Reputation: 937

Use setEnabledSystemUIMode and provide SystemUiMode.manual as shown below:

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

Upvotes: 2

Related Questions