我最近将 Flutter 版本从 1.22.6 更新到了 2.0.2。但是现在在我创建一个新的颤振项目(默认计数器应用程序)之后,状态栏图标是黑暗的。在迁移到 2.0.2 之前它们很轻:
如何修复?我尝试在 AppBarTheme 中设置灯光 statusBarIconBrightness,但它不起作用:
appBarTheme: AppBarTheme(
systemOverlayStyle: SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.light,
),
),