RoundRangeSliderTickMarkShape class

The default shape of each RangeSlider tick mark.

Tick marks are only displayed if the slider is discrete, which can be done by setting the RangeSlider.divisions to an integer value.

It paints a solid circle, centered on the track. The color is determined by the Slider's enabled state and track's active states. These colors are defined in: SliderThemeData.activeTrackColor, SliderThemeData.inactiveTrackColor, SliderThemeData.disabledActiveTrackColor, SliderThemeData.disabledInactiveTrackColor.

See also:

  • RangeSlider, which includes tick marks defined by this shape.
  • SliderTheme, which can be used to configure the tick mark shape of all sliders in a widget subtree.
Inheritance

Constructors

RoundRangeSliderTickMarkShape({double tickMarkRadius })
Create a range slider tick mark that draws a circle.
const

Properties

tickMarkRadius double
The preferred radius of the round tick mark. [...]
final
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

getPreferredSize({SliderThemeData sliderTheme, bool isEnabled: false }) Size
Returns the preferred size of the shape. [...]
override
paint(PaintingContext context, Offset center, { RenderBox parentBox, SliderThemeData sliderTheme, Animation<double> enableAnimation, Offset startThumbCenter, Offset endThumbCenter, bool isEnabled: false, TextDirection textDirection }) → void
Paints the slider track. [...]
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