Realank / flutter_datetime_picker

a date time picker in flutter
MIT License
618 stars 728 forks source link

Time picker appears in reverse when app's selected locale is ("he", "IL") #117

Open NetiSade opened 4 years ago

NetiSade commented 4 years ago

when the app's selected locale is ("he", "IL") - Hebrew language, the time picker looks as the image attached. the minutes on the left and the hours on the right.

Screen Shot 2020-02-19 at 20 59 20
Realank commented 4 years ago

please attach your codes, this package doesn't support Hebrew language, and the time picker will always show 3 columns

NetiSade commented 4 years ago

Hi, I Set the locale to en, and only the local of the app is He. This is my code:

main.dart: MaterialApp( localizationsDelegates: [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, ], supportedLocales: [ Locale("he", "IL"), ], locale: Locale("he", "IL"), ),

And the Picker call:

FlatButton( onPressed: () { DatePicker.showTimePicker(context, showSecondsColumn: false, theme: DatePickerTheme( containerHeight: 210.0, ), showTitleActions: true, onConfirm: (time) { print('confirm $time'); }, currentTime: DateTime.now(), locale: LocaleType.en); }, child: Text( 'show date time picker', style: TextStyle(color: Colors.blue), ), )

Thanks in advance!

Realank commented 4 years ago

sorry, I can't reproduce your issue, please update this package to latest 1.3.5 version and try again, may be you can try to set showSecondsColumn to true, to see what will be displayed