flutter如何修改状态栏颜色和状态栏字体颜色
flutter如何实现导航状态栏透明
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
//状态栏字体颜色
appBarTheme: const AppBarTheme(
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: Brightness.light,
),
),
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}