RoundSliderTickMarkShape class

This is the default shape of each Slider tick mark.

Tick marks are only displayed if the slider is discrete, which can be done by setting the Slider.divisions as non-null.

It paints a solid circle, centered in the 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:

  • Slider, 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

RoundSliderTickMarkShape({double tickMarkRadius })
Create a 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({bool isEnabled, SliderThemeData sliderTheme }) Size
Returns the preferred size of the shape. [...]
override
paint(PaintingContext context, Offset center, { RenderBox parentBox, SliderThemeData sliderTheme, Animation<double> enableAnimation, TextDirection textDirection, Offset thumbCenter, bool isEnabled }) → 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