ThumbConfiguration class

Allows customization of the thumb color, shape, shadows, size.

Constructors

ThumbConfiguration.new({double radius = 10, double width = 20, double height = 20, List<Color> colorsList = const [Color(0xffdde1e7)], Color borderColor = Colors.black, double borderWidth = 0, bool displayOuterShadows = false, bool displayInnerShadows = false, bool autoThumbColor = false, Shadow innerTopShadow = const Shadow(spread: 4, offset: Offset(-5, -5), inflate: 0, radius: 20), Shadow innerBottomShadow = const Shadow(spread: 9, offset: Offset(5, 5), inflate: 0, radius: 20), Shadow outerTopShadow = const Shadow(spread: 1, offset: Offset(1, 1), inflate: 0, radius: 20), Shadow outerBottomShadow = const Shadow(spread: 1, offset: Offset(-1, -1), inflate: 0, radius: 20)})
const

Properties

autoThumbColor bool
Whether thumb color is calculated depending on its position on the gradient. Default is false.
final
borderColor Color
Default border color is Colors.black.
final
borderWidth double
Default border width is 0.
final
colorsList List<Color>
Default color is Color(0xffdde1e7).
final
displayInnerShadows bool
Whether shadows inside the thumb are displayed. Default is false.
final
displayOuterShadows bool
Whether shadows around the thumb are displayed. Default is false.
final
hashCode int
The hash code for this object.
no setterinherited
height double
Default height is 20.
final
innerBottomShadow Shadow
Default shadow is Shadow(spread: 9, offset: Offset(5, 5), inflate: 0, radius: 20).
final
innerTopShadow Shadow
Default shadow is Shadow(spread: 4, offset: Offset(-5, -5), inflate: 0, radius: 20).
final
outerBottomShadow Shadow
Default shadow is Shadow(spread: 1, offset: Offset(-1, -1), inflate: 0, radius: 20).
final
outerTopShadow Shadow
Default shadow is Shadow(spread: 1, offset: Offset(1, 1), inflate: 0, radius: 20).
final
radius double
Default radius is 10.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
Default width is 20.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited