How can I make a custom circular progress indicator like the ones in the below image in Flutter? The out of box one does not allow adding text in the center.
-
try to create your own , follow cogitas.net/custom-loading-animation-flutterShyju M– Shyju M2018-05-22 12:13:31 +00:00Commented May 22, 2018 at 12:13
-
This shows a basic with animations, I am actually confused at the part at how to display the progress. Other than that I just have to put circle shapes in a stack widget and I will get a circle barMusa Usman– Musa Usman2018-05-22 12:19:19 +00:00Commented May 22, 2018 at 12:19
Add a comment
|
1 Answer
I think you have two ways.
first put CircularProgressIndicator and Text widgets into Stack and place them as you want(Text in the center and CircularProgressIndicator cover all stack space). Stack widget is key point here for you to understand...
the second way and more flexible way is to this action with CustomPaint Widget.
this link will help you to achieve the goal...
https://medium.com/@NPKompleet/creating-an-analog-clock-in-flutter-i-68def107d9f4
3 Comments
tenhobi
Also take a look at youtube.com/watch?v=svxUUz5mi9s for ideas how to do custom painting.
Richard Heap
Also, this answer stackoverflow.com/questions/45130497/…
Musa Usman
I tried using the stack widget but the amounts I have are too big and are escaping the circles, any way I can increase the size of the indcators