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 pickerTime picke,rDate & Time ,picker (Chinese)Date & Time pi,cker (English-America)Date & Time pi,cker (Dutch)
time pickerscreen_timescreen_datetime_chinesescreen_datetime_englishscreen_datetime_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),
    ));

GitHub

Download the full project for this post from the following button

This source is fully free for all time

Download as zip

Comments are closed.

You're Offline!

Top