Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed type of resetIcon from [IconData] to [Icon] #118

Merged
merged 1 commit into from
Aug 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/src/fields/form_builder_date_time_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class FormBuilderDateTimePicker extends StatefulWidget {
/// If defined, the TextField [decoration]'s [suffixIcon] will be
/// overridden to reset the input using the icon defined here.
/// Set this to `null` to stop that behavior. Defaults to [Icons.close].
final IconData resetIcon;
final Icon resetIcon;

/// For validating the [DateTime]. The value passed will be `null` if
/// [format] fails to parse the text.
Expand Down Expand Up @@ -142,7 +142,7 @@ class FormBuilderDateTimePicker extends StatefulWidget {
this.cursorWidth = 2.0,
this.enableInteractiveSelection = true,
this.decoration = const InputDecoration(),
this.resetIcon = Icons.close,
this.resetIcon = const Icon(Icons.close),
this.initialTime = const TimeOfDay(hour: 12, minute: 0),
this.keyboardType = TextInputType.text,
this.textAlign = TextAlign.start,
Expand Down Expand Up @@ -284,7 +284,7 @@ class _FormBuilderDateTimePickerState extends State<FormBuilderDateTimePicker> {
},
onChanged: widget.onChanged,
autovalidate: widget.autovalidate,
resetIcon: Icon(widget.resetIcon),
resetIcon: widget.resetIcon,
textDirection: widget.textDirection,
textAlign: widget.textAlign,
maxLength: widget.maxLength,
Expand Down