mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-08 14:12:15 -04:00
work
This commit is contained in:
parent
9fa1666e8b
commit
f754f7d5ed
27 changed files with 655 additions and 289 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ part of 'router_notifier.dart';
|
|||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$routerNotifierHash() => r'00de1dd715945e96b49507ea55d7b97a78366adc';
|
||||
String _$routerNotifierHash() => r'ef31219dde5e12b2bb224c79ca13ab4f414c81b4';
|
||||
|
||||
/// See also [RouterNotifier].
|
||||
@ProviderFor(RouterNotifier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue