activeTrackColor property

Color? activeTrackColor
final

Specifies the color for active track in the SfSlider, SfRangeSlider, and SfRangeSelector.

The active side of the SfRangeSlider and SfRangeSelector is between the start and end thumbs.

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

This snippet shows how to set active track color in SfRangeSliderThemeData.

SfRangeValues _values = SfRangeValues(4.0, 8.0);

Scaffold(
    body: Center(
        child: SfRangeSliderTheme(
            data: SfRangeSliderThemeData(
                activeTrackColor: Colors.red,
            ),
            child:  SfRangeSlider(
                min: 2.0,
                max: 10.0,
                values: _values,
                onChanged: (SfRangeValues newValues){
                    setState(() {
                        _values = newValues;
                    });
                },
           )
       ),
   )
)

Implementation

final Color? activeTrackColor;