HueSliderThumbShape class
Defines a custom thumb shape for a Slider.
- Inheritance
-
- Object
- SliderComponentShape
- RoundSliderThumbShape
- HueSliderThumbShape
Constructors
- HueSliderThumbShape({double radius = 10, bool filled = true, Color color = Colors.white, double strokeWidth = 3, bool showBorder = false, Color borderColor = Colors.black, double borderWidth = 1})
-
Creates an instance of HueSliderThumbShape.
const
Properties
- borderColor → Color
-
The Color of the additional border around the thumb.
final
- borderWidth → double
-
The width of the border.
final
- color → Color
-
Main color of the thumb (either fill color or stroke color if filled:
false
).final - disabledThumbRadius → double?
-
The preferred radius of the round thumb shape when the slider is disabled.
finalinherited
- elevation → double
-
The resting elevation adds shadow to the unpressed thumb.
finalinherited
- enabledThumbRadius → double
-
The preferred radius of the round thumb shape when the slider is enabled.
finalinherited
- filled → bool
-
Whether the thumb should be filled or not on the inside.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pressedElevation → double
-
The pressed elevation adds shadow to the pressed thumb.
finalinherited
- radius → double
-
The radius of the slider thumb.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBorder → bool
-
Whether an additional border should be shown around the thumb.
final
- strokeWidth → double
-
Width of the stroke, if filled is set to
false
.final
Methods
-
getPreferredSize(
bool isEnabled, bool isDiscrete) → Size -
Returns the preferred size of the shape, based on the given conditions.
inherited
-
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, required bool isDiscrete, required TextPainter labelPainter, required RenderBox parentBox, required SliderThemeData sliderTheme, required TextDirection textDirection, required double value, required double textScaleFactor, required Size sizeWithOverflow}) → void -
Copied from RoundSliderThumbShape.paint and modified.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited