Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future condition #5

Open
danieramiz opened this issue Mar 14, 2020 · 1 comment
Open

Future condition #5

danieramiz opened this issue Mar 14, 2020 · 1 comment

Comments

@danieramiz
Copy link

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
Copy link

Roy7017 commented Nov 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants