diegoveloper / flutter_percent_indicator

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

CircularPercentIndicator change colors of the center #131

Closed robpot95 closed 2 years ago

robpot95 commented 2 years ago

Hello,

i would like to change the color of the center, same as the background color of the circle.

How it is now: image

What i would like to achive: image

diegoveloper commented 2 years ago

add a minimum sample code to reproduce the issue.

robpot95 commented 2 years ago

Well it's not a issue, i wonder if it's possible to change color inside the circle as the toilet image. I seem not find it possible at the moment

diegoveloper commented 2 years ago

Did you try the backgroundColor property? https://github.com/diegoveloper/flutter_percent_indicator/blob/master/lib/circular_percent_indicator.dart#L43

On Wed, Nov 10, 2021 at 3:21 AM Roberto Potrus @.***> wrote:

Well it's not a issue, i wonder if it's possible to change color around inside the circle as the toilet image. I seem not find it possible at the moment

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diegoveloper/flutter_percent_indicator/issues/131#issuecomment-964885920, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFL3UFMPHLC4PFZPEDRTYDULITQHANCNFSM5HWOSKOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

moxran commented 2 years ago

You can wrap it in a container: Container( height: percentIndicatorRadius*2, decoration: BoxDecoration( color: shadingColor, shape: BoxShape.circle, ), child: CircularPercenIndicator( radius: percentIndicatorRadius ...... ) )