mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
CWA-206 | fixed status bar text and icon colors for light and dark modes
This commit is contained in:
parent
d9e0c260d4
commit
7daf74c9f5
1 changed files with 12 additions and 3 deletions
|
@ -190,8 +190,6 @@ class MaterialAppWithTheme extends StatelessWidget {
|
||||||
final syncStore = Provider.of<SyncStore>(context);
|
final syncStore = Provider.of<SyncStore>(context);
|
||||||
final balanceStore = Provider.of<BalanceStore>(context);
|
final balanceStore = Provider.of<BalanceStore>(context);
|
||||||
final theme = Provider.of<ThemeChanger>(context);
|
final theme = Provider.of<ThemeChanger>(context);
|
||||||
final statusBarColor =
|
|
||||||
settingsStore.isDarkTheme ? Colors.black : Colors.white;
|
|
||||||
final currentLanguage = Provider.of<Language>(context);
|
final currentLanguage = Provider.of<Language>(context);
|
||||||
final contacts = Provider.of<Box<Contact>>(context);
|
final contacts = Provider.of<Box<Contact>>(context);
|
||||||
final nodes = Provider.of<Box<Node>>(context);
|
final nodes = Provider.of<Box<Node>>(context);
|
||||||
|
@ -199,8 +197,19 @@ class MaterialAppWithTheme extends StatelessWidget {
|
||||||
final transactionDescriptions =
|
final transactionDescriptions =
|
||||||
Provider.of<Box<TransactionDescription>>(context);
|
Provider.of<Box<TransactionDescription>>(context);
|
||||||
|
|
||||||
|
final statusBarColor =
|
||||||
|
settingsStore.isDarkTheme ? Colors.black : Colors.white;
|
||||||
|
final statusBarBrightness =
|
||||||
|
settingsStore.isDarkTheme ? Brightness.light : Brightness.dark;
|
||||||
|
final statusBarIconBrightness =
|
||||||
|
settingsStore.isDarkTheme ? Brightness.light : Brightness.dark;
|
||||||
|
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(
|
||||||
SystemUiOverlayStyle(statusBarColor: statusBarColor));
|
SystemUiOverlayStyle(
|
||||||
|
statusBarColor: statusBarColor,
|
||||||
|
statusBarBrightness: statusBarBrightness,
|
||||||
|
statusBarIconBrightness: statusBarIconBrightness
|
||||||
|
));
|
||||||
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
|
|
Loading…
Reference in a new issue