mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
Merge redesign part 7.
This commit is contained in:
parent
d67ab4934d
commit
95917b2cdb
31 changed files with 373 additions and 267 deletions
|
@ -251,6 +251,17 @@ class MaterialAppWithTheme extends StatelessWidget {
|
|||
_settingsStore.isDarkTheme ? Brightness.light : Brightness.dark;
|
||||
final statusBarIconBrightness =
|
||||
_settingsStore.isDarkTheme ? Brightness.light : Brightness.dark;
|
||||
final authenticationStore = getIt.get<AuthenticationStore>();
|
||||
String initialRoute;
|
||||
|
||||
switch (authenticationStore.state) {
|
||||
case AuthenticationState.denied:
|
||||
initialRoute = Routes.welcome;
|
||||
break;
|
||||
default:
|
||||
initialRoute = Routes.login;
|
||||
break;
|
||||
}
|
||||
|
||||
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||
statusBarColor: statusBarColor,
|
||||
|
@ -258,7 +269,7 @@ class MaterialAppWithTheme extends StatelessWidget {
|
|||
statusBarIconBrightness: statusBarIconBrightness));
|
||||
|
||||
return Root(
|
||||
authenticationStore: getIt.get<AuthenticationStore>(),
|
||||
authenticationStore: authenticationStore,
|
||||
child: MaterialApp(
|
||||
navigatorKey: navigatorKey,
|
||||
debugShowCheckedModeBanner: false,
|
||||
|
@ -286,8 +297,7 @@ class MaterialAppWithTheme extends StatelessWidget {
|
|||
nodes: nodes,
|
||||
trades: trades,
|
||||
transactionDescriptions: transactionDescriptions),
|
||||
initialRoute: Routes.login, // FIXME: get initial route!
|
||||
// home: Container(color: Colors.blue),
|
||||
initialRoute: initialRoute,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue