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