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