DropRangeSliderValueIndicatorShape class
The shape of a Material 3 RangeSlider's value indicators.
If the SliderThemeData.valueIndicatorColor is null, then the shape uses the ColorScheme.primary color to draw the value indicator.
If the SliderThemeData.valueIndicatorTextStyle is null, then the indicator label text style defaults to TextTheme.labelMedium with the color set to ColorScheme.onPrimary. If the ThemeData.useMaterial3 is set to false, then the indicator label text style defaults to TextTheme.bodyLarge with the color set to ColorScheme.onInverseSurface.
If the SliderThemeData.valueIndicatorStrokeColor is provided, then the value indicator is drawn with a stroke border with the color provided.
See also:
- RangeSlider, which includes value indicators defined by this shape.
- SliderTheme, which can be used to configure the range slider value indicators of all range sliders in a widget subtree.
- Inheritance
-
- Object
- RangeSliderValueIndicatorShape
- DropRangeSliderValueIndicatorShape
Constructors
- DropRangeSliderValueIndicatorShape.new()
-
Create a range slider value indicator that resembles a drop shape.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHorizontalShift(
{RenderBox? parentBox, Offset? center, TextPainter? labelPainter, Animation< double> ? activationAnimation, double? textScaleFactor, Size? sizeWithOverflow}) → double -
Determines the best offset to keep this shape on the screen.
inherited
-
getPreferredSize(
bool isEnabled, bool isDiscrete, {TextPainter? labelPainter, double? textScaleFactor}) → Size -
Returns the preferred size of the shape, based on the given conditions.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
PaintingContext context, Offset center, {required Animation< double> activationAnimation, required Animation<double> enableAnimation, bool? isDiscrete, bool? isOnTop, required TextPainter labelPainter, double? textScaleFactor, Size? sizeWithOverflow, required RenderBox parentBox, required SliderThemeData sliderTheme, TextDirection? textDirection, double? value, Thumb? thumb}) → void -
Paints the value indicator 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