标签: ios flutter
是否可以在iOS应用程序中隐藏状态栏?
我尝试使用this soluton在Android中执行此操作,但在iOS上不起作用。
此外,我还尝试通过使用本机iOS方法将其隐藏,但是FlutterViewController会在每个版本中重新生成,因此我无法应用in this other answer中描述的解决方案。
FlutterViewController
答案 0 :(得分:0)
解决方案是致电SystemChrome.setEnabledSystemUIOverlays([]);。
SystemChrome.setEnabledSystemUIOverlays([]);