diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
679 stars 206 forks source link

Only change the color of the center of the circle so that it respects the value of the backgroundWidth #125

Closed kelryazevedo closed 2 years ago

kelryazevedo commented 2 years ago

I can't change the color of the center of the circle respecting the borders of the backgroundWidth, when choosing color for the fillColor it fills with a square format and doesn't respect the circle either.

diegoveloper commented 2 years ago

Add minimum sample code and screenshots

aneeskA commented 1 year ago

@diegoveloper This is very easy to reproduce.

CircularPercentIndicator(
                                                radius: 25.0,
                                                lineWidth: 3,
                                                center: Icon(
                                                  Icons
                                                      .workspace_premium_outlined,
                                                  color: Colors.white,
                                                ),
                                                progressColor: Colors.white,
                                                backgroundColor:
                                                    Colors.deepPurple.shade400,
                                                fillColor: Colors.green,
                                                percent: 1.0,
                                              ),

The above code creates

image

The code above is for the last one with free fill color.