GlowSliderThumbShape class
Paints a soft, blurred glow of color behind another thumb shape, like a lit knob. The glow is the thumb's outline grown by spread and blurred by blur (a sigma); it does not change the thumb's size.
- Inheritance
-
- Object
- SliderComponentShape
- GlowSliderThumbShape
Constructors
- GlowSliderThumbShape({required SliderComponentShape thumb, required Color color, double blur = kSliderDefaultThumbGlowBlur, double spread = kSliderDefaultThumbGlowSpread, double? cornerRadius})
-
Creates a GlowSliderThumbShape.
const
Properties
- blur → double
-
Blur sigma of the glow; a hard edge when 0.
final
- color → Color
-
Color of the glow.
final
- cornerRadius → double?
-
Corner radius of a rectangular thumb; null for a round one.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spread → double
-
How far the glow reaches past the thumb's edge, before blur.
final
- thumb → SliderComponentShape
-
The thumb drawn over the glow.
final
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 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 -
Paints the shape, taking into account the state passed to it.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited