RoundSliderStyle class
Style to draw the RoundSlider
Constructors
-
RoundSliderStyle({List<
Color> glowColorStops = const [Colors.transparent, Colors.transparent, const Color(0x30ff4b85), Colors.transparent], List<double> glowStops = const [0.0, 0.01, 0.85, 1.0], RoundSliderAlignment alignment = RoundSliderAlignment.right, double visibleFactor = 0.4, double radius = 150.0, double friction = 5.0, int stepLineCount = 150, Color borderColor = Colors.pinkAccent, double borderStroke = 3.0, double glowDistance = 30.0, double lineMargin = 4.0, List<double> lineLengths = const <double>[10.0, 14.0, 20.0], Color lineColor = Colors.white, double lineStroke = 1.0}) -
Create a RoundSliderStyle, it has a default style already.
const
Properties
- alignment → RoundSliderAlignment
-
alignment : See also RoundSliderAlignment.
final
- borderColor → Color
-
borderColor : color of the border circle.
final
- borderStroke → double
-
borderStroke : stroke width of the border circle.
final
- friction → double
-
friction : The friction of sliding. As big as hard.
final
-
glowColorStops
→ List<
Color> -
glowColorStops : colorStops to draw the glow gradient, see also ui.Gradient.
final
- glowDistance → double
-
glowDistance : the distance that the glow gradient spreads.
final
-
glowStops
→ List<
double> -
glowStops : stops to draw the glow gradient, see also ui.Gradient.
final
- hashCode → int
-
it is used to compare between styles.
no setteroverride
- lineColor → Color
-
lineColor : color of lines. Only use one color.
final
-
lineLengths
→ List<
double> -
lineLengths : describes 3 types of line length. The line at the index%10==0 uses lineLengths
2
. The line at the index%5==0 uses lineLengths1
, and other use lineLengths0
.final - lineMargin → double
-
lineMargin : margin from each line to the border circle.
final
- lineStroke → double
-
lineStroke : stroke width of lines.
final
- radius → double
-
radius : radius of the circle.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stepLineCount → int
-
stepLineCount : count of lines that separate the circle.
final
- visibleFactor → double
-
visibleFactor :
0...1
, factor of the circle diameter that is visible.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 -
it is used to compare between styles.
override