RoundedRectRangeSliderTrackShape class

The default shape of a RangeSlider's track.

It paints a solid colored rectangle with rounded edges, vertically centered in the parentBox. The track rectangle extends to the bounds of the parentBox, but is padded by the larger of RoundSliderOverlayShape's radius and RoundRangeSliderThumbShape's radius. The height is defined by the SliderThemeData.trackHeight. The color is determined by the RangeSlider's enabled state and the track segment's active state which are defined by: SliderThemeData.activeTrackColor, SliderThemeData.inactiveTrackColor, SliderThemeData.disabledActiveTrackColor, SliderThemeData.disabledInactiveTrackColor.

The track segment between the two thumbs is the active track segment. The track segments between the thumb and each end of the slider are the inactive track segments. In TextDirection.ltr, the start of the slider is on the left, and in TextDirection.rtl, the start of the slider is on the right.

See also:

Inheritance

Constructors

RoundedRectRangeSliderTrackShape()
Create a slider track with rounded outer edges. [...]
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getPreferredRect({RenderBox parentBox, Offset offset: Offset.zero, SliderThemeData sliderTheme, bool isEnabled: false, bool isDiscrete: false }) Rect
Returns the preferred bounds of the shape. [...]
override
paint(PaintingContext context, Offset offset, { RenderBox parentBox, SliderThemeData sliderTheme, Animation<double> enableAnimation, Offset startThumbCenter, Offset endThumbCenter, bool isEnabled: false, bool isDiscrete: false, TextDirection textDirection }) → void
Paints the track shape based on the state passed to it. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited