How to work with progress indicator in flutter?
In flutter, there are a few ways to deal with Asynchronous actions. A lazy way to do it can be using a modal. Which will block the user input, thus preventing any unwanted actions. This would require very little change to your code. Just modifying your _onLoading to something like this : void _onLoading() { … Read more