mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-27 15:47:08 -04:00
proto cleanup
This commit is contained in:
parent
f951acd79a
commit
a93c711d52
84 changed files with 2393 additions and 2087 deletions
|
@ -22,4 +22,5 @@ final routerProvider = AutoDisposeProvider<GoRouter>.internal(
|
|||
);
|
||||
|
||||
typedef RouterRef = AutoDisposeProviderRef<GoRouter>;
|
||||
// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member
|
||||
|
|
|
@ -10,6 +10,7 @@ import '../pages/settings.dart';
|
|||
import '../providers/chat.dart';
|
||||
import '../providers/local_accounts.dart';
|
||||
import '../tools/responsive.dart';
|
||||
import '../veilid_init.dart';
|
||||
|
||||
part 'router_notifier.g.dart';
|
||||
|
||||
|
@ -46,9 +47,14 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {
|
|||
}
|
||||
|
||||
// No matter where we are, if there's not
|
||||
|
||||
switch (state.matchedLocation) {
|
||||
case '/':
|
||||
|
||||
// Wait for veilid to be initialized
|
||||
if (!eventualVeilid.isCompleted) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return hasAnyAccount ? '/home' : '/new_account';
|
||||
case '/new_account':
|
||||
return hasAnyAccount ? '/home' : null;
|
||||
|
|
|
@ -6,7 +6,7 @@ part of 'router_notifier.dart';
|
|||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$routerNotifierHash() => r'745bae688e8675c3046b95f29cbe0122bac3f189';
|
||||
String _$routerNotifierHash() => r'8e636edc119d07296a95a5de8a6edadb119154cf';
|
||||
|
||||
/// See also [RouterNotifier].
|
||||
@ProviderFor(RouterNotifier)
|
||||
|
@ -22,4 +22,5 @@ final routerNotifierProvider =
|
|||
);
|
||||
|
||||
typedef _$RouterNotifier = AutoDisposeAsyncNotifier<void>;
|
||||
// ignore_for_file: unnecessary_raw_strings, subtype_of_sealed_class, invalid_use_of_internal_member, do_not_use_environment, prefer_const_constructors, public_member_api_docs, avoid_private_typedef_functions
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue