flutter 顶部状态栏透明 main.js文件: void main() { //顶部状态栏透明 SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle(statusBarColor: Colors.transparent) ); runApp(child: MyApp()); }