inactiveColor property

Color? inactiveColor
final

Color applied to the inactive track and active dividers.

The inactive side of the slider is between the thumb and the max value.

This snippet shows how to set inactive color in SfSlider.

double _value = 4.0;

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

See also:

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

Implementation

final Color? inactiveColor;