feat: people page/sheet/detail (#20309)

This commit is contained in:
Alex
2025-07-29 22:07:53 -05:00
committed by GitHub
parent 268b411a6f
commit 29f16c6a47
34 changed files with 1562 additions and 97 deletions
@@ -16,8 +16,8 @@ class PersonApiRepository extends ApiRepository {
return dto.people.map(_toPerson).toList();
}
Future<PersonDto> update(String id, {String? name}) async {
final dto = await checkNull(_api.updatePerson(id, PersonUpdateDto(name: name)));
Future<PersonDto> update(String id, {String? name, DateTime? birthday}) async {
final dto = await checkNull(_api.updatePerson(id, PersonUpdateDto(name: name, birthDate: birthday)));
return _toPerson(dto);
}