activeColor property

Color? activeColor
final

Color applied to the active track, thumb, overlay, and inactive dividers.

The active side of the slider is between the min value and the thumb.

This snippet shows how to set active color in SfSlider.

double _value = 4.0;

SfSlider(
  min: 0.0,
  max: 10.0,
  value: _value,
  interval: 1,
  showTicks: true,
  showLabels: true,
  activeColor: Colors.red,
  onChanged: (dynamic newValue) {
    setState(() {
      _value = newValue;
    });
   },
)

See also:

  • SfSliderThemeData, for customizing the individual active slider element’s visual.

Implementation

final Color? activeColor;