Hide the iOS status bar on Flutter

Viewed 1429

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.

1 Answers

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

Related