feat(mobile): people sync (#19777)

* feat(mobile): drift people sync

* merge main

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Daimolean 2025-07-18 22:21:39 +08:00 committed by GitHub
parent 2e63b9d951
commit 7bae49ebd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 2197 additions and 63 deletions

View file

@ -14,8 +14,8 @@ import 'package:immich_mobile/widgets/common/search_field.dart';
class PeoplePicker extends HookConsumerWidget {
const PeoplePicker({super.key, required this.onSelect, this.filter});
final Function(Set<Person>) onSelect;
final Set<Person>? filter;
final Function(Set<PersonDto>) onSelect;
final Set<PersonDto>? filter;
@override
Widget build(BuildContext context, WidgetRef ref) {
@ -24,7 +24,7 @@ class PeoplePicker extends HookConsumerWidget {
final searchQuery = useState('');
final people = ref.watch(getAllPeopleProvider);
final headers = ApiService.getRequestHeaders();
final selectedPeople = useState<Set<Person>>(filter ?? {});
final selectedPeople = useState<Set<PersonDto>>(filter ?? {});
return Column(
children: [