import 'package:flutter/services.dart'; // 引包
void main() {
//在runApp之前确保BoostFlutterBinding初始化
CustomFlutterBinding();
runApp(MyApp());
// 设置 状态栏为透明色
SystemUiOverlayStyle systemUiOverlayStyle =
SystemUiOverlayStyle(statusBarColor: Colors.transparent);
SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}
Tips:【小程序云开发】中高级前端面试题库(源码:小程序中联系我哟)。
---------- 创作不易,感谢大家,请多多支持!