Flutter|Flutter 修改状态栏颜色

void main() { runApp(MyApp()); if (Platform.isAndroid) { //设置状态栏颜色 SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle( statusBarColor: Colors.transparent, //设置为透明 ); SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle); } }

    推荐阅读