sleek_circular_slider icon indicating copy to clipboard operation
sleek_circular_slider copied to clipboard

Gradient issue triggered when the dynamicGradient field is true

Open MrLi2000 opened this issue 11 months ago • 0 comments

When I set dynamicGradient to true, the gradient color starts from 0-1, but the starting position color is incorrect The example code is as follows: SleekCircularSlider( min: 0, max: 1, initialValue: 1, appearance: CircularSliderAppearance( size: 0, customWidths: CustomSliderWidths(progressBarWidth: 10, trackWidth: 9), customColors: CustomSliderColors( progressBarColors: <Color>[ Colors.red, Colors.green, ], dynamicGradient: true, hideShadow: true, ), angleRange: 360, ), onChange: null, ),

The results obtained are as follows: image

MrLi2000 avatar Mar 04 '24 07:03 MrLi2000