minimum range slider difference, actual value problem

Hello ,I am new with range slider .i have added sfrangeslider but when i trying the thumbs  make closer they are keeping minimum 4 distance(50,54). again sometimes it is not showing acual value . rander is displaying 27 but when i am storing the value ,i can see that the store value is 28. 
Here is my code:

SfRangeValues _values = const SfRangeValues(45, 55);
SfRangeSliderTheme(
data: SfRangeSliderThemeData(
tooltipBackgroundColor: Colors.transparent,
thumbStrokeWidth: 2,
thumbStrokeColor: AppColors.white,
overlayRadius: 10,
labelOffset: Offset(0, -40),
),
child: SfRangeSlider(
min: 0,
max: 100,
showTicks: true,
showLabels: true,
inactiveColor: Colors.white,
enableTooltip: true,
shouldAlwaysShowTooltip: true,
stepSize: 1,
values: _values,
onChanged: (SfRangeValues newValues) {
setState(() {
_values = newValues;
print(_values.start.toString());
});
},
),
),

Thanks in advance.Screenshot_20220930-012352.jpg


1 Reply

SK Sriram Kiran Senthilkumar Syncfusion Team September 30, 2022 10:48 AM UTC

Hi Sanwarul,


Greetings from Syncfusion.

We have checked your queries at our end and provided the responses below.

Query #1: I have added sfrangeslider but when I trying the thumbs  make closer they are keeping minimum 4 distance(50,54)

We have checked the above query and we would like to let you know the issue regarding “the thumbs stop with minimum distance always while dragging even when step size is set” is already fixed and rolled out in our Volume 3 main release. So, kindly please upgrade the slider package version to the latest version below to overcome the issue.

https://pub.dev/packages/syncfusion_flutter_sliders/versions/20.3.47


Query #2: (again sometimes it is not showing actual value. rander is displaying 27 but when i am storing the value ,i can see that the store value is 28.)

We have checked the above query and we tried to replicate the reported issue with the latest slider package version (20.3.47) by checking whether the thumbs moving values and the values returning from the onChanged callback are correct or not. Unfortunately, the issue didn’t get reproduced in our end. So, we kindly request you to share us with more information in detail regarding the reported issue along with replication procedure and also try to replicate the issue in the below attached sample and revert us with it so that it will help us assist you in a better way.


Regards,
Sriram Kiran


Attachment: f177872_b5e59f24.zip

Loader.
Up arrow icon