RectangularRangeSliderValueIndicatorShape class

The default shape of a RangeSlider's value indicators.

A slider widget, consisting of 5 divisions and showing the rectangular range slider value indicator shape.

See also:

  • RangeSlider, which includes value indicators defined by this shape.
  • SliderTheme, which can be used to configure the range slider value indicator of all sliders in a widget subtree.
Inheritance

Constructors

RectangularRangeSliderValueIndicatorShape()
Create a range slider value indicator that resembles a rectangular tooltip.
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.
override
getPreferredSize(bool isEnabled, bool isDiscrete, {required TextPainter labelPainter, required 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, {Animation<double>? activationAnimation, Animation<double>? enableAnimation, bool? isDiscrete, bool? isOnTop, TextPainter? labelPainter, double? textScaleFactor, Size? sizeWithOverflow, RenderBox? parentBox, 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