Roc Boronat
Roc Boronat

Reputation: 12171

Hide the iOS status bar on Flutter

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.

Upvotes: 2

Views: 2366

Answers (1)

Roc Boronat
Roc Boronat

Reputation: 12171

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

Upvotes: 4

Related Questions