How to use CircularProgressIndicator in flutter?

Posted by Pinki | Updated on

Want to use CircularProgressIndicator in flutter? Change from Stateless to Stateful to manage the state of your widget and put a global variable named isLoading. You can play with that variable, set isLoading true when you press the button and isLoading false after it complete.

Add a validation inside your build method to display a circularprogresss when isLoading is in true otherwise display your fields.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers