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
- Use DateTimes.datePicker or DateTimes.timePicker function
- Date Picker
DateTimes.datePicker(
context: context,
date: "1997-04-26",
onSelected: (date) {
log(date);
});
- Time Picker
DateTimes.timePicker(
context: context,
time: "12:12:00",
onSelected: (time) {
log(time);
});