2022-04-24 04:08:45 +02:00
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
2023-02-06 09:13:32 +02:00
|
|
|
import 'package:immich_mobile/shared/models/user.dart';
|
2022-04-24 04:08:45 +02:00
|
|
|
import 'package:immich_mobile/shared/services/user.service.dart';
|
|
|
|
|
2022-06-25 20:46:51 +02:00
|
|
|
final suggestedSharedUsersProvider =
|
2023-03-04 00:38:30 +02:00
|
|
|
FutureProvider.autoDispose<List<User>>((ref) {
|
2022-06-25 20:46:51 +02:00
|
|
|
UserService userService = ref.watch(userServiceProvider);
|
2022-04-24 04:08:45 +02:00
|
|
|
|
2023-03-04 00:38:30 +02:00
|
|
|
return userService.getUsersInDb();
|
2022-04-24 04:08:45 +02:00
|
|
|
});
|