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;
}

View file

@ -6,7 +6,7 @@ part of 'router_notifier.dart';
// RiverpodGenerator
// **************************************************************************
String _$routerNotifierHash() => r'00de1dd715945e96b49507ea55d7b97a78366adc';
String _$routerNotifierHash() => r'ef31219dde5e12b2bb224c79ca13ab4f414c81b4';
/// See also [RouterNotifier].
@ProviderFor(RouterNotifier)