activeColor property
Color applied to the active track, thumb, overlay, and inactive dividers.
The active side of the range selector is between the start and end thumbs.
This snippet shows how to set active color in SfRangeSelector.
SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);
SfRangeSelector(
min: 0.0,
max: 10.0,
initialValues: _initialValues,
interval: 1,
showTicks: true,
showLabels: true,
activeColor: Colors.red,
child: Container(
height: 200,
color: Colors.green[100],
),
)
See also:
- SfRangeSelectorThemeData, for customizing the individual active range selector element’s visual.
Implementation
final Color? activeColor;