flutter Android透明状态栏

void main() {
  runApp(MyApp());

  if (Platform.isAndroid) {
    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
        statusBarColor: Colors.transparent,
        statusBarIconBrightness: Brightness.dark));
  }
}
posted @ 2021-12-09 10:39  用户72093285  阅读(85)  评论(0)    收藏  举报