Skip to content

Commit

Permalink
fix(mobile): Cannot type date format on Samsung phone (immich-app#15430)
Browse files Browse the repository at this point in the history
* fix(mobile): Cannot type date format on Samsung phone

* use calendar
  • Loading branch information
alextran1502 authored and vladd11 committed Jan 25, 2025
1 parent a7d139e commit 60ec0c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mobile/assets/i18n/en-US.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"start_date": "Start date",
"end_date": "End date",
"action_common_back": "Back",
"action_common_cancel": "Cancel",
"action_common_clear": "Clear",
Expand Down
4 changes: 3 additions & 1 deletion mobile/lib/pages/search/search.page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ class SearchPage extends HookConsumerWidget {
errorInvalidText: 'invalid_date'.tr(),
fieldStartHintText: 'start_date'.tr(),
fieldEndHintText: 'end_date'.tr(),
initialEntryMode: DatePickerEntryMode.input,
initialEntryMode: DatePickerEntryMode.calendar,
keyboardType: TextInputType.text,
locale: context.locale,
);

if (date == null) {
Expand Down

0 comments on commit 60ec0c2

Please sign in to comment.