From e1146cbe64661ac781cf6ce94922f5f9be4a85bb Mon Sep 17 00:00:00 2001 From: Gaspard Merten Date: Thu, 10 Sep 2020 16:04:14 +0200 Subject: [PATCH] Reformating with dartfm --- lib/date_field.dart | 60 ++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/lib/date_field.dart b/lib/date_field.dart index e63b981..37216d6 100644 --- a/lib/date_field.dart +++ b/lib/date_field.dart @@ -29,38 +29,38 @@ class DateTimeFormField extends FormField { this.initialDatePickerMode = DatePickerMode.day, this.mode = DateFieldPickerMode.date, }) : super( - key: key, - initialValue: initialValue, - onSaved: onSaved, - validator: validator, - autovalidate: autovalidate, - enabled: enabled, - builder: (FormFieldState field) { - final _DateFormFieldState state = field; + key: key, + initialValue: initialValue, + onSaved: onSaved, + validator: validator, + autovalidate: autovalidate, + enabled: enabled, + builder: (FormFieldState field) { + final _DateFormFieldState state = field; - void onChangedHandler(DateTime value) { - if (onDateSelected != null) { - onDateSelected(value); - } - field.didChange(value); - } + void onChangedHandler(DateTime value) { + if (onDateSelected != null) { + onDateSelected(value); + } + field.didChange(value); + } - return DateTimeField( - label: label, - firstDate: firstDate, - lastDate: lastDate, - decoration: decoration, - initialDatePickerMode: initialDatePickerMode, - dateFormat: dateFormat, - errorText: state.errorText, - onDateSelected: onChangedHandler, - selectedDate: state.value, - enabled: enabled, - mode: mode, - textStyle: textStyle, - ); - }, - ); + return DateTimeField( + label: label, + firstDate: firstDate, + lastDate: lastDate, + decoration: decoration, + initialDatePickerMode: initialDatePickerMode, + dateFormat: dateFormat, + errorText: state.errorText, + onDateSelected: onChangedHandler, + selectedDate: state.value, + enabled: enabled, + mode: mode, + textStyle: textStyle, + ); + }, + ); /// (optional) A callback that will be triggered whenever a new /// DateTime is selected