mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-15 23:49:30 +00:00
progress on home screen
This commit is contained in:
parent
865a662b56
commit
479242427a
9 changed files with 333 additions and 124 deletions
|
|
@ -142,3 +142,12 @@ FutureOr<GetUserSessionsResponse> fetchContinueListening(
|
|||
// );
|
||||
return res!;
|
||||
}
|
||||
|
||||
@riverpod
|
||||
FutureOr<User> me(
|
||||
MeRef ref,
|
||||
) async {
|
||||
final api = ref.watch(authenticatedApiProvider);
|
||||
final res = await api.me.getUser();
|
||||
return res!;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -347,6 +347,20 @@ final fetchContinueListeningProvider =
|
|||
|
||||
typedef FetchContinueListeningRef
|
||||
= AutoDisposeFutureProviderRef<GetUserSessionsResponse>;
|
||||
String _$meHash() => r'bdc664c4fd867ad13018fa769ce7a6913248c44f';
|
||||
|
||||
/// See also [me].
|
||||
@ProviderFor(me)
|
||||
final meProvider = AutoDisposeFutureProvider<User>.internal(
|
||||
me,
|
||||
name: r'meProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product') ? null : _$meHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef MeRef = AutoDisposeFutureProviderRef<User>;
|
||||
String _$personalizedViewHash() => r'2e70fe2bfc766a963f7a8e94211ad50d959fbaa2';
|
||||
|
||||
/// fetch the personalized view
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ part of 'library_item_provider.dart';
|
|||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$libraryItemHash() => r'6442db4e802e0a072689b8ff6c2b9aaa99cf0f17';
|
||||
String _$libraryItemHash() => r'4c9a9e6d6700c7c76fbf56ecf5c0873155d5061a';
|
||||
|
||||
/// Copied from Dart SDK
|
||||
class _SystemHash {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue