mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +01:00
Fix navigation bar icon color
This commit is contained in:
parent
ad5146607a
commit
b403609f07
2 changed files with 12 additions and 0 deletions
|
@ -241,3 +241,14 @@ ThemeData _applyColorScheme(ColorScheme colorScheme) {
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension BrightnessExtension on Brightness {
|
||||||
|
Brightness invert() {
|
||||||
|
switch (this) {
|
||||||
|
case Brightness.dark:
|
||||||
|
return Brightness.light;
|
||||||
|
case Brightness.light:
|
||||||
|
return Brightness.dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -619,6 +619,7 @@ class _ThemedMyApp extends StatelessWidget {
|
||||||
value: SystemUiOverlayStyle(
|
value: SystemUiOverlayStyle(
|
||||||
statusBarColor: Colors.transparent,
|
statusBarColor: Colors.transparent,
|
||||||
systemNavigationBarColor: theme.colorScheme.secondaryContainer,
|
systemNavigationBarColor: theme.colorScheme.secondaryContainer,
|
||||||
|
systemNavigationBarIconBrightness: theme.brightness.invert(),
|
||||||
),
|
),
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue