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

Another exception was thrown: 'package:flutter_range_slider/src/flutter_range_slider.dart': Failed assertion: line 112 pos 16: 'upperValue >= lowerValue && upperValue <= max': is not true #29

Open
umairali435 opened this issue Jul 9, 2020 · 2 comments

Comments

@umairali435
Copy link

This is the issue i am faced... i dont know how to solve it....

@boeledi
Copy link
Owner

boeledi commented Jul 9, 2020

Could you please provide me with the parameters you pass to the RangeSlider?

@umairali435
Copy link
Author

i give lower value to 0.0 and upper is 400.0;
when i drag from right to left and cross the left it shows red screen..i know its not ok to be like this ....but a user might be drag to the left
double _lowerValue = 0.0;
double _upperValue = 400.0;
frs.RangeSlider(

                          min: 0.0,
                          max: 400.0,
                          lowerValue: _lowerValue,
                          upperValue: _upperValue,
                          divisions: _upperValue.toInt(),
                          showValueIndicator: true,
                          valueIndicatorMaxDecimals: 1,
                          onChanged:
                              (double newLowerValue, double newUpperValue) {
                            setState(() {
                              _upperValue = newUpperValue;
                            });
                          },
                          onChangeStart: (double startLowerValue,
                              double startUpperValue) {
                            print(
                                'Started with values: $startLowerValue hand $startUpperValue');
                          },
                          onChangeEnd:
                              (double newLowerValue, double newUpperValue) {
                            print(
                                'Ended with values: $newLowerValue land $newUpperValue');
                          },
                        ),
                      ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants