2

Is there any way to hide the status bar in an iOS application?

I tried with this soluton to do it in Android, but it doesn't work on iOS.

In addition, I also tried hiding it by using the native iOS way to do it, but the FlutterViewController is being regenerated in every build, so I can't apply the solution described in this other answer.

Roc Boronat
  • 11,395
  • 5
  • 47
  • 59

1 Answers1

5

The solution is to call SystemChrome.setEnabledSystemUIOverlays([]);.

Roc Boronat
  • 11,395
  • 5
  • 47
  • 59
  • 1
    `SystemChrome.setEnabledSystemUIOverlays([]);` this alone is sufficient, you don't need to change anything in `info.plist` file. –  Oct 24 '19 at 15:40
  • 1
    @Volleyball, yeah it's true. Some funny business is happening in this man's app) – Zhangir Siranov Oct 24 '19 at 15:51
  • 1
    You're totally right. I made too much changes in the same time and ended with a working project but didn't notice that one commit wasn't needed. Thanks guys! – Roc Boronat Oct 27 '19 at 10:45