mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +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(
|
||||
statusBarColor: Colors.transparent,
|
||||
systemNavigationBarColor: theme.colorScheme.secondaryContainer,
|
||||
systemNavigationBarIconBrightness: theme.brightness.invert(),
|
||||
),
|
||||
child: child,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue