一尘不染

如何在Flutter中隐藏Android StatusBar

flutter

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


阅读 295

收藏
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