I want to create a spiral in flutter which will have a dynamic fill, something like shown below. One way to create is by using multiple semi-circles, but is there a better way to achieve this?
The dynamic fill is orange in color and will depend on a percentage value.
2
Answers
I was able to make it from scratch using a bit of gematrical calculations. My code below:
To create a spiral in Flutter, you can use the CustomPainter class to draw the spiral shape.
Here’s an sample example code for spiral: