matthewfx / sleek_circular_slider

Sleek circular slider for Flutter
MIT License
524 stars 102 forks source link

Cant start gradient from 270 #54

Open MathiasBrams opened 3 years ago

MathiasBrams commented 3 years ago

Hey, cool package!

I start my slider from startAngle: 270 and angleRange: 360. So it spins around like a clock.

I then want to apply a gradient of three colors progressing from red to yellow to green.

But I can't start gradient from gradientStartAngle: 270, because it doesn't work if I set the gradientEndAngle to 630 (270+360) or any other solutions I could think of.

Did I simply misunderstood? Couldn't google any solutions.

I have done a temporary fix by setting it gradientStart: 0 and end: 360 and then settings colors as yellow, green, red, but it doesn't seem like a great fix :-)

AsimKarga commented 10 months ago

you can try to use this parameter "dynamicGradient : true"