activeColor property Null safety

Color? activeColor
final

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:

Implementation

final Color? activeColor;