flutter_form_builder icon indicating copy to clipboard operation
flutter_form_builder copied to clipboard

[FormBuilderRangeSlider]: Slider always at min value if initialValue is not set

Open grundid opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Package/Plugin version

9.1.1

Platforms

  • [X] Android
  • [X] iOS
  • [ ] Linux
  • [ ] MacOS
  • [X] Web
  • [ ] Windows

Flutter doctor

Flutter doctor

Minimal code example

The code below is in the builder method so it is executed on each build. If initialValue is not set if will always set the value at min range. The field is unusable for the user.

          if (initialValue == null) {
            field.setValue(RangeValues(min, min));
          }

Current Behavior

see above

Expected Behavior

see above

Steps To Reproduce

see above

Aditional information

No response

grundid avatar Oct 17 '23 11:10 grundid