[Android] Fixed status bar icon brightness

This commit is contained in:
Vadim 2023-01-20 23:59:06 +03:00
parent 02e5fc582c
commit cd9ea81dd1

View file

@ -39,6 +39,8 @@ class Application extends StatelessWidget {
builder: (context, child) => AnnotatedRegion(
value: SystemUiOverlayStyle(
statusBarColor: context.watch<ThemeData>().colorScheme.surface,
statusBarIconBrightness:
ThemeData.estimateBrightnessForColor(context.watch<ThemeData>().colorScheme.onSurface),
systemNavigationBarColor: context.watch<ThemeData>().colorScheme.surface,
),
child: MaterialApp(