activeColor property
Color applied to the active track, thumb, overlay, and inactive dividers.
The active side of the range slider is between the start and end thumbs.
This snippet shows how to set active color in SfRangeSlider.
SfRangeValues _values = SfRangeValues(4.0, 8.0);
SfRangeSlider(
min: 0.0,
max: 10.0,
values: _values,
interval: 1,
showTicks: true,
showLabels: true,
activeColor: Colors.red,
onChanged: (SfRangeValues newValues) {
setState(() {
_values = newValues;
});
},
)
See also:
- SfRangeSliderThemeData, for customizing the individual active range slider element’s visual.
Implementation
final Color? activeColor;