No description
Find a file
2020-09-10 16:04:49 +02:00
example Updating readme.md 2020-07-19 16:53:45 +02:00
lib Reformating with dartfm 2020-09-10 16:04:14 +02:00
.gitignore Init commit 2020-03-01 23:16:40 +01:00
.metadata Init commit 2020-03-01 23:16:40 +01:00
analysis_options.yaml DateFormField from StatelessWidget to FormField + fixing theming 2020-07-14 16:30:59 +02:00
CHANGELOG.md Changing version 2020-09-10 16:04:49 +02:00
LICENSE Updating readme.md 2020-03-01 23:29:41 +01:00
pubspec.lock Adding the textStyle parameter 2020-09-10 16:03:04 +02:00
pubspec.yaml Changing version 2020-09-10 16:04:49 +02:00
README.md Updating readme.md 2020-07-19 16:53:45 +02:00

date_field

Contains DateTimeField and DateTimeFormField which allows the user to pick a DateTime from an input field! Depending on the mode, it can ask the user the time, the date or both at the same time!

Getting Started

The best way to discover this package is simply to check the example page!

There are two widgets in this package:

  • DateTimeField
  • DateTimeFormField

The second one is wrapping the first one with a FormField widget! This way you can integrate it in your form structure flawlessly.

The DateTimeField widget returns an InputDecorator with an Inkwell which will display a date picker (platform responsive) which allows the user to select the date and the time he wants!

You can customize the widget a lot thanks to these parameters:

onSaved, validator, initialValue, autovalidate, enabled, firstDate, lastDate, label, dateFormat, decoration, initialDatePickerMode, mode (time, date, time and date)

If you want more details, I invite you to check the official documentation.