如何在Flutter中隐藏Android StatusBar

发布于 2021-01-31 15:44:48

How to hide the Android Status Bar in a Flutter App?

关注者
0
被浏览
362
1 个回答
  • 面试哥
    面试哥 2021-01-31
    为面试而生,有面试问题,就找面试哥。

    SystemChrome.setEnabledSystemUIOverlays([])should do what you want.

    You can bring it back with
    SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values).

    Import it using

    import 'package:flutter/services.dart';
    


知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看