File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,9 @@ class FormBuilderRangeSlider extends FormBuilderField<RangeValues> {
136
136
}) : super (builder: (FormFieldState <RangeValues ?> field) {
137
137
final state = field as _FormBuilderRangeSliderState ;
138
138
final effectiveNumberFormat = numberFormat ?? NumberFormat .compact ();
139
-
139
+ if (initialValue == null ) {
140
+ field.setValue (RangeValues (min, min));
141
+ }
140
142
return InputDecorator (
141
143
decoration: state.decoration,
142
144
child: Container (
@@ -145,7 +147,7 @@ class FormBuilderRangeSlider extends FormBuilderField<RangeValues> {
145
147
crossAxisAlignment: CrossAxisAlignment .start,
146
148
children: [
147
149
RangeSlider (
148
- values: field.value ?? RangeValues (min, min) ,
150
+ values: field.value! ,
149
151
min: min,
150
152
max: max,
151
153
divisions: divisions,
You can’t perform that action at this time.
0 commit comments