RoundRangeSliderThumbShape class Null safety
The default shape of a RangeSlider's thumbs.
There is a shadow for the resting and pressed state.
![A slider widget, consisting of 5 divisions and showing the round range slider thumb shape.] (https://flutter.github.io/assets-for-api-docs/assets/material/round_range_slider_thumb_shape.png)
See also:
- RangeSlider, which includes thumbs defined by this shape.
- SliderTheme, which can be used to configure the thumb shapes of all range sliders in a widget subtree.
- Inheritance
-
- Object
- RangeSliderThumbShape
- RoundRangeSliderThumbShape
Constructors
- RoundRangeSliderThumbShape({double enabledThumbRadius = 10.0, double? disabledThumbRadius, double elevation = 1.0, double pressedElevation = 6.0})
-
Create a slider thumb that draws a circle.
const
Properties
- disabledThumbRadius → double?
-
The preferred radius of the round thumb shape when the slider is disabled.
final
- elevation → double
-
The resting elevation adds shadow to the unpressed thumb.
final
- enabledThumbRadius → double
-
The preferred radius of the round thumb shape when the slider is enabled.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- pressedElevation → double
-
The pressed elevation adds shadow to the pressed thumb.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
getPreferredSize(
bool isEnabled, bool isDiscrete) → Size -
Returns the preferred size of the shape, based on the given conditions.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
paint(
PaintingContext context, Offset center, {required Animation< double> activationAnimation, required Animation<double> enableAnimation, bool isDiscrete = false, bool isEnabled = false, bool? isOnTop, required SliderThemeData sliderTheme, TextDirection? textDirection, Thumb? thumb, bool? isPressed}) → void -
Paints the thumb shape based on the state passed to it.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited