Track
The Default track for Slider
Parameters
SliderState which is used to obtain the current active track.
the Modifier to be applied to the track.
controls the enabled state of this slider. When false
, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
SliderColors that will be used to resolve the colors used for this track in different states. See SliderDefaults.colors.
lambda that will be called to draw the stop indicator at the end of the track.
lambda that will be called to draw the ticks if steps are greater than 0.
size of the gap between the thumb and the track.
size of the corners towards the thumb when a gap is set.
The Default track for RangeSlider
Parameters
RangeSliderState which is used to obtain the current active track.
the Modifier to be applied to the track.
controls the enabled state of this slider. When false
, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.
SliderColors that will be used to resolve the colors used for this track in different states. See SliderDefaults.colors.
lambda that will be called to draw the stop indicator at the start/end of the track.
lambda that will be called to draw the ticks if steps are greater than 0.
size of the gap between the thumbs and the track.
size of the corners towards the thumbs when a gap is set.
Deprecated
Use version that supports slider state
The Default track for Slider and RangeSlider
Parameters
SliderPositions which is used to obtain the current active track and the tick positions if the slider is discrete.
the Modifier to be applied to the track.
SliderColors that will be used to resolve the colors used for this track in different states. See SliderDefaults.colors.
controls the enabled state of this slider. When false
, this component will not respond to user input, and it will appear visually disabled and disabled to accessibility services.