答案 0 :(得分:1)
通过实现自定义RangeSliderValueIndicatorShape
来创建自定义SliderThemeData
,并将其提供给SliderTheme
的{{3}},{{3}}会将您的RangeSlider
作为孩子:
SliderTheme(
data: SliderThemeData(
rangeValueIndicatorShape: Your_Implemented_RangeSliderValueIndicatorShape(),
),
child: RangeSlider(
values: RangeValues(10, 100),
onChanged: null
),