I have a screen in my app where I have few other widgets along with CircularProgressIndicator, I need help showing and hiding the progressbar whenever a task is done, without changing the state of whole screen
I have a screen in my app where I have few other widgets along with CircularProgressIndicator, I need help showing and hiding the progressbar whenever a task is done, without changing the state of whole screen
You can try to use Visibility Widget and set the visible property to true or false according to your needs
Wrap CircularProgressIndicator with a UniversalWidget (https://pub.dartlang.org/packages/universal_widget), plug that UniversalWidget into your root screen, give it a name, then you can show/hide by calling UniversalWidget.find("name").update(visible: true) or (visible: false)