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

How to change UI while the image is being cropped #39

Open
logic-and-math opened this issue Jun 18, 2021 · 2 comments
Open

How to change UI while the image is being cropped #39

logic-and-math opened this issue Jun 18, 2021 · 2 comments

Comments

@logic-and-math
Copy link

logic-and-math commented Jun 18, 2021

Since crop function is not async I am not sure how to show a loading indicator while the image is being cropped, any suggestions ?

@logic-and-math
Copy link
Author

I figured it out, I need to set a flag before cropping is started, then rebuild the with the new flag and then start the cropping. With setState this is intuitive, but with other state managements methods it's a bit weird. Any chance that this can be converted to a future that can be awaited for?

@chooyan-eng
Copy link
Owner

@logic-and-math
Thank you for your suggestion.
Related Pull Request #42 is now open so I'm glad if you also check the PR and post your feedback.

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