This commit is contained in:
Christien Rioux 2023-07-26 22:38:09 -04:00
parent 9fa1666e8b
commit f754f7d5ed
27 changed files with 655 additions and 289 deletions

View file

@ -37,9 +37,13 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {
return null;
}
// No matter where we are, if there's not
switch (state.location) {
case IndexPage.path:
return hasAnyAccount ? HomePage.path : NewAccountPage.path;
case NewAccountPage.path:
return hasAnyAccount ? HomePage.path : null;
default:
return hasAnyAccount ? null : NewAccountPage.path;
}