-
Notifications
You must be signed in to change notification settings - Fork 736
Closed
Description
For example, If I have this code the picker will show AM and PM in Arabic locale while it has another value in the i18 file.
DateTime selectedToTime = DateTime.now();
DatePicker.showTime12hPicker(
context, showTitleActions: true,
locale: LocaleType.ar,
onConfirm: (date) {
print('confirm $date');
setState(() {
selectedToTime = date;
});
},
currentTime: selectedToTime,
)
The solution is simple, just use the translation of the AM and PM from the locale array.
Metadata
Metadata
Assignees
Labels
No labels