小编典典

如何在Flutter中隐藏Android StatusBar

flutter

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


阅读 353

收藏
2020-08-13

共1个答案

小编典典

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';
2020-08-13