Skip to content

Commit 45da3dd

Browse files
committed
Fix: Created default decorator - user doesn’t have to declare
1 parent ae5d888 commit 45da3dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/inputs/form_builder_date_time_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class FormBuilderDateTimePicker extends StatefulWidget {
2424
this.format,
2525
this.firstDate,
2626
this.lastDate,
27-
this.decoration,
27+
this.decoration = const InputDecoration(),
2828
});
2929

3030
@override

lib/src/inputs/form_builder_slider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FormBuilderSlider extends StatefulWidget {
2020
@required this.initialValue,
2121
this.validators = const [],
2222
this.readonly = false,
23-
this.decoration,
23+
this.decoration = const InputDecoration(),
2424
this.divisions,
2525
});
2626

0 commit comments

Comments
 (0)