dylanwuzh / flutter-cupertino-date-picker

Flutter cupertino style date picker.
Apache License 2.0
363 stars 414 forks source link

issue when select the month firstly #115

Open walide67 opened 3 years ago

walide67 commented 3 years ago

i'm work with the format MM/yyyy when i select the month firstly and select the year after the selected month will be initialized to 06 how i can solve this my on confirm callback function onConfirm: (value){ print('================== value ==============='); print(value); String year = value.year.toString().substring(value.year.toString().length - 2); String month = (value.month.toString().length == 1)?'0${value.month.toString()}':value.month.toString(); expDateAdd.text = '$month/$year'; print('================== date ==============='); print(expDateAdd.text); }