java-james / loading_overlay

A simple modal progress HUD (heads-up display, or progress indicator) for flutter
https://pub.dev/packages/loading_overlay
MIT License
25 stars 12 forks source link

Future condition #5

Open danieramiz opened 4 years ago

danieramiz commented 4 years ago

It would be cool if you can use a future instead of the boolean condition. for example if we made an API call using a future, the loading_overlay will be only visible until the future method is ready or finish.

Roy7017 commented 3 years ago

A simple fix will be to set your loading variable in the state to true before starting your Future and then setting it to false or navigating to your desired page when the future completes.