RoundSliderOverlayShape class

The default shape of a Slider's thumb overlay.

The shape of the overlay is a circle with the same center as the thumb, but with a larger radius. It animates to full size when the thumb is pressed, and animates back down to size 0 when it is released. It is painted behind the thumb, and is expected to extend beyond the bounds of the thumb so that it is visible.

The overlay color is defined by SliderThemeData.overlayColor.

See also:

  • Slider, which includes an overlay defined by this shape.
  • SliderTheme, which can be used to configure the overlay shape of all sliders in a widget subtree.
Inheritance

Constructors

RoundSliderOverlayShape({double overlayRadius: 24.0 })
Create a slider thumb overlay that draws a circle.
const

Properties

overlayRadius double
The preferred radius of the round thumb shape when enabled. [...]
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 bool isDiscrete) Size
Returns the preferred size of the shape, based on the given conditions.
override
paint(PaintingContext context, Offset center, { Animation<double> activationAnimation, Animation<double> enableAnimation, bool isDiscrete: false, TextPainter labelPainter, RenderBox parentBox, SliderThemeData sliderTheme, TextDirection textDirection, double value }) → void
Paints the shape, taking into account 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