inactiveColor property

Color? inactiveColor
final

The color of the track's inactive segments, i.e. the span of tracks between the min and the start thumb, and the end thumb and the max.

If null, SliderThemeData.inactiveTrackColor of the ambient SliderTheme is used. If RangeSlider.year2023 is false and ThemeData.useMaterial3 is true, then ColorScheme.secondaryContainer is used. Otherwise, ColorScheme.primary with an opacity of 0.24 is used.

Using a SliderTheme gives more fine-grained control over the appearance of various components of the slider.

Implementation

final Color? inactiveColor;