diegoveloper/flutter_percent_indicator

Using fillColor creates a rectangular fill not circular

aneeskA opened this issue · 8 comments

Sample code

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,
      ),

Screenshot
image

The last green filled corresponds to the above code.
Same as #125

@diegoveloper Please take a look at this if you can.

Can you add a ClipOval above CircularPercentIndicator?

Wow! I didn't know such a widget existed! It fixes the problem :)

ClipOval(
    child: 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,
    ),
  ),

result

image

@diegoveloper May be add an example to the README for this specific case?

Great

Would you mind to send a PR?

Yes, will do that. ✌️