date_time_pro

Pick Date or Time functions, Date or Time convert functions.

Using

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile and web development, and a full API reference.

Installation

First, add date_time_pro as a dependency in your pubspec.yaml file.

In your flutter project add the dependency:

dependencies:
  ...
  date_time_pro:

For help getting started with Flutter, view the online documentation.

Example

Please follow this example here.

Date Picker and Time Picker

  1. Use DateTimes.datePicker or DateTimes.timePicker function
  • Date Picker
DateTimes.datePicker(
  context: context,
  date: "1997-04-26",
  dateTime: (date) {
    log(date);
});
  • Time Picker
DateTimes.timePicker(
  context: context,
  time: "12:12:00",
  dateTime: (time) {
    log(time);
});

Libraries

date_time_pro
date_time_pro_web
date_times