TF-997 Custom date ranges in search

This commit is contained in:
dab246
2022-10-05 22:59:44 +07:00
committed by Dat H. Pham
parent a363435de2
commit 796a0fdba7
11 changed files with 369 additions and 32 deletions
@@ -2327,4 +2327,54 @@ class AppLocalizations {
name: 'titleForeground'
);
}
String get selectDate {
return Intl.message(
'Select date',
name: 'selectDate',
);
}
String get setDate {
return Intl.message(
'Set date',
name: 'setDate',
);
}
String get toastMessageErrorWhenSelectStartDateIsEmpty {
return Intl.message(
'The start date cannot be null.',
name: 'toastMessageErrorWhenSelectStartDateIsEmpty',
);
}
String get toastMessageErrorWhenSelectEndDateIsEmpty {
return Intl.message(
'The end date cannot be null.',
name: 'toastMessageErrorWhenSelectEndDateIsEmpty',
);
}
String get toastMessageErrorWhenSelectDateIsInValid {
return Intl.message(
'The end time cannot be less than the start time.',
name: 'toastMessageErrorWhenSelectDateIsInValid',
);
}
String dateRangeAdvancedSearchFilter(String startDate, String endDate) {
return Intl.message(
'From $startDate to $endDate',
name: 'dateRangeAdvancedSearchFilter',
args: [startDate, endDate]
);
}
String get customRange {
return Intl.message(
'Custom range',
name: 'customRange');
}
}