fix: 首页图标亮度不跟随主题设置

This commit is contained in:
orz12
2024-06-03 00:46:35 +08:00
parent e622a6b620
commit c5d8cfea15

View File

@@ -65,7 +65,7 @@ class _HomePageState extends State<HomePage>
backgroundColor: Colors.transparent,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarIconBrightness:
MediaQuery.of(context).platformBrightness == Brightness.dark
Theme.of(context).brightness == Brightness.dark
? Brightness.light
: Brightness.dark,
),