mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
[Android] Fixed status bar icon brightness
This commit is contained in:
parent
02e5fc582c
commit
cd9ea81dd1
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ class Application extends StatelessWidget {
|
||||||
builder: (context, child) => AnnotatedRegion(
|
builder: (context, child) => AnnotatedRegion(
|
||||||
value: SystemUiOverlayStyle(
|
value: SystemUiOverlayStyle(
|
||||||
statusBarColor: context.watch<ThemeData>().colorScheme.surface,
|
statusBarColor: context.watch<ThemeData>().colorScheme.surface,
|
||||||
|
statusBarIconBrightness:
|
||||||
|
ThemeData.estimateBrightnessForColor(context.watch<ThemeData>().colorScheme.onSurface),
|
||||||
systemNavigationBarColor: context.watch<ThemeData>().colorScheme.surface,
|
systemNavigationBarColor: context.watch<ThemeData>().colorScheme.surface,
|
||||||
),
|
),
|
||||||
child: MaterialApp(
|
child: MaterialApp(
|
||||||
|
|
Loading…
Reference in a new issue