RangeSlider
给我们类似的东西代码为here
然后
SliderTheme
的重要部分是trackHeight: 48
, body: SliderTheme(
data: SliderThemeData(
trackHeight: 48,
),
child: RangeSlider(
values: _currentRangeValues,
min: 0,
max: 100,
divisions: 5,
labels: RangeLabels(
_currentRangeValues.start.round().toString(),
_currentRangeValues.end.round().toString(),
),
onChanged: (RangeValues values) {
setState(() {
_currentRangeValues = values;
});
},
),
)