Updating readme.md (3)
This commit is contained in:
parent
d5e721633e
commit
14a4f9eff4
1 changed files with 1 additions and 29 deletions
30
README.md
30
README.md
|
@ -21,32 +21,4 @@ The DateField widget returns an InputDecorator with an Inkwell which will displa
|
||||||
|
|
||||||
You can customize the widget a lot thanks to these parameters:
|
You can customize the widget a lot thanks to these parameters:
|
||||||
|
|
||||||
<pre><code>
|
<i>onSaved, validator, initialValue, autovalidate, enabled, firstDate, lastDate, label, dateFormat, decoration, initialDatePickerMode</i>
|
||||||
/// Callback for whenever the user selects a [DateTime]
|
|
||||||
final ValueChanged<DateTime> onDateSelected;
|
|
||||||
|
|
||||||
/// The current selected date to display inside the field
|
|
||||||
final DateTime selectedDate;
|
|
||||||
|
|
||||||
/// (optional) The first date that the user can select (default is 1900)
|
|
||||||
final DateTime firstDate;
|
|
||||||
|
|
||||||
/// (optional) The last date that the user can select (default is 2100)
|
|
||||||
final DateTime lastDate;
|
|
||||||
|
|
||||||
/// Let you choose the [DatePickerMode] for the date picker! (default is [DatePickerMode.day]
|
|
||||||
final DatePickerMode initialDatePickerMode;
|
|
||||||
|
|
||||||
/// The label to display for the field (default is 'Select date')
|
|
||||||
final String label;
|
|
||||||
|
|
||||||
/// (optional) The error text that should be displayed under the field
|
|
||||||
final String errorText;
|
|
||||||
|
|
||||||
/// (optional) Custom [InputDecoration] for the [InputDecorator] widget
|
|
||||||
final InputDecoration decoration;
|
|
||||||
|
|
||||||
/// (optional) How to display the [DateTime] for the user (default is [DateFormat.yMMMD])
|
|
||||||
final DateFormat dateFormat;
|
|
||||||
|
|
||||||
</code></pre>
|
|
Loading…
Reference in a new issue