date_time_plus 1.2.0
date_time_plus: ^1.2.0 copied to clipboard
Pick Date and Time functions, Date and Time convert functions.
date_time_plus #
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_plus
as a dependency in your pubspec.yaml file.
In your flutter project add the dependency:
dependencies:
...
date_time_plus:
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);
});