0

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

Febin Johnson
  • 277
  • 1
  • 6
  • 21
  • 1
    Does this answer your question? [How to hide android's bottom navigation bar in flutter](https://stackoverflow.com/questions/52365173/how-to-hide-androids-bottom-navigation-bar-in-flutter) – Tor-Martin Holen Apr 14 '22 at 10:45
  • See this answer from a similar question: https://stackoverflow.com/questions/69115166/in-flutter-2-5-in-android-full-screen-lean-back-sticky-sticky-immersive-and-e – Eric Su Apr 14 '22 at 09:42

1 Answers1

1

Use setEnabledSystemUIMode and provide SystemUiMode.manual as shown below:

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

Maqsood
  • 807
  • 3
  • 14