Using fillColor creates a rectangular fill not circular
aneeskA opened this issue · 8 comments
aneeskA commented
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,
),
The last green filled corresponds to the above code.
Same as #125
aneeskA commented
@diegoveloper Please take a look at this if you can.
diegoveloper commented
Can you add a ClipOval above CircularPercentIndicator?
aneeskA commented
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
aneeskA commented
@diegoveloper May be add an example to the README for this specific case?
diegoveloper commented
Great
diegoveloper commented
Would you mind to send a PR?
…On Sun, Jan 1, 2023, 2:33 PM aneeskA ***@***.***> wrote:
@diegoveloper <https://github.com/diegoveloper> May be add an example to
the README for this specific case?
—
Reply to this email directly, view it on GitHub
<#189 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFL3UHLDY6L3EILLTPQOVLWQHLZXANCNFSM6AAAAAATOIL6KI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***
com>