flutter date time picker
a flutter date time pi,cker inspired by flutter-cupertino-date-picker.
you can choose date / time / date&time in english, dutch and chinese, and you can also custom your own picker content.
date picker | time picke,r | date & time ,picker (chinese) | date & time pi,cker (english-america) | date & time pi,cker (dutch) |
---|---|---|---|---|
usage
flatbutton(
onpressed: () {
datepicker.showdatepicker(context,
showtitleactions: true,
mintime: datetime(2018, 3, 5),
maxtime: datetime(2019, 6, 7), onchanged: (date) {
print('change $date');
}, onconfirm: (date) {
print('confirm $date');
}, currenttime: datetime.now(), locale: localetype.zh);
},
child: text(
'show date time picker (chinese)',
style: textstyle(color: colors.blue),
));
Comments are closed.