I can use slider with Slider class
Slider(
value: _currentLenValue,
min: 1,
max: 8,
divisions: 8,
label: _currentLenValue.round().toString(),
onChanged: (double value) {
setState(() {
_currentLenValue = value;
});
},
),
This make the slider with value
[1,2,3,4,5,6,7,8]
However I want to set the custom value of slider, not equal period.
[0,4,8,16,24,32,128,512]
Is it possible or how can I make it?