Add back removed textCapitalization

pull/22670/head
Marvin M 2025-10-31 13:36:39 +07:00
parent 0300f23834
commit eeee06a432
2 changed files with 4 additions and 3 deletions

@ -89,7 +89,7 @@ class _DriftPersonNameEditFormState extends ConsumerState<DriftPersonNameEditFor
final allContain = queryParts.every((q) => nameParts.any((n) => n.contains(q)));
if (allStart) {
// Prioritize names that start with the query
// Prioritize names (first or surname) that start with the query
startsWithMatches.add(p);
} else if (allContain) {
containsMatches.add(p);
@ -117,6 +117,7 @@ class _DriftPersonNameEditFormState extends ConsumerState<DriftPersonNameEditFor
TextFormField(
autofocus: true,
controller: _formController,
textCapitalization: TextCapitalization.words,
decoration: InputDecoration(
hintText: 'add_a_name'.tr(),
border: const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(8))),

@ -21,8 +21,8 @@ class PersonApiRepository extends ApiRepository {
return _toPerson(dto);
}
Future<void> merge(String targetId, List<String> mergeIds) async {
await checkNull(_api.mergePerson(targetId, MergePersonDto(ids: mergeIds)));
Future<List<BulkIdResponseDto>?> merge(String targetId, List<String> mergeIds) async {
return await checkNull(_api.mergePerson(targetId, MergePersonDto(ids: mergeIds)));
}
static PersonDto _toPerson(PersonResponseDto dto) => PersonDto(