A value slider works by touching and dragging in the increasing or decreasign direction, and not affected by tapping which gives more decent experience for touch devices
ModernLinearSlider(
backgroundColor: Colors.black26,
foregroundColor: Colors.blueAccent,
disabledColor: Colors.black38,
value: val.toDouble(),
onValueChanging: (i) {
setState(() {
val = i.toInt();
});
},
onValueChanged: (i) {},
),
