flutterflutterandroidflutter 底部状态栏透明沉浸Star2023-12-052025-01-13flutter沉浸式-底部状态栏透明沉浸在main入口配置即可 dart123456789101112main() { runApp(MyApp()); if (Platform.isAndroid) { SystemUiOverlayStyle systemUiOverlayStyle = const SystemUiOverlayStyle( statusBarColor: Colors.transparent, systemNavigationBarColor: Color(0x002196f3), ); SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle); SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); }}