How to hide Android StatusBar in Flutter

后端 未结 10 1442
遥遥无期
遥遥无期 2020-12-01 03:22

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

10条回答
  •  青春惊慌失措
    2020-12-01 03:48

    You can add the below code in your main function to hide status bar.

    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
      statusBarColor: Colors.transparent,
    ));
    

提交回复
热议问题