inactiveColor property

Color? inactiveColor
final

Color applied to the inactive track and active dividers.

The inactive side of the range selector 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 selector 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 SfRangeSelector.

SfRangeValues _initialValues = SfRangeValues(4.0, 8.0);

SfRangeSelector(
  min: 0.0,
  max: 10.0,
  initialValues: _initialValues,
  interval: 1,
  showTicks: true,
  showLabels: true,
  inactiveColor: Colors.red,
  child: Container(
      height: 200,
      color: Colors.green[100],
   ),
)

See also:

Implementation

final Color? inactiveColor;