From d249b63c995e2bfead7b7c62501bdbc5b65380df Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 18 Jan 2025 15:56:18 -0600 Subject: [PATCH] fix(mobile): Cannot type date format on Samsung phone (#15430) * fix(mobile): Cannot type date format on Samsung phone * use calendar --- mobile/assets/i18n/en-US.json | 2 ++ mobile/lib/pages/search/search.page.dart | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/assets/i18n/en-US.json b/mobile/assets/i18n/en-US.json index b85d52baa9..b584d99a6a 100644 --- a/mobile/assets/i18n/en-US.json +++ b/mobile/assets/i18n/en-US.json @@ -1,4 +1,6 @@ { + "start_date": "Start date", + "end_date": "End date", "action_common_back": "Back", "action_common_cancel": "Cancel", "action_common_clear": "Clear", diff --git a/mobile/lib/pages/search/search.page.dart b/mobile/lib/pages/search/search.page.dart index 9aca7fc118..32e73f5c24 100644 --- a/mobile/lib/pages/search/search.page.dart +++ b/mobile/lib/pages/search/search.page.dart @@ -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) {