inactiveColor property

Color? inactiveColor
final

Color applied to the inactive track and active dividers.

The inactive side of the range slider is between the min value and the left thumb, and the right thumb and the max value.

For RTL, the inactive side of the range slider is between the max value and the left thumb, and the right thumb and the min value.

This snippet shows how to set inactive 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,
  inactiveColor: Colors.red,
  onChanged: (SfRangeValues newValues) {
    setState(() {
      _values = newValues;
    });
   },
)

See also:

Implementation

final Color? inactiveColor;