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

[BUG] Function calls block main UI thread #19

Open
kreativityapps opened this issue Dec 13, 2020 · 0 comments
Open

[BUG] Function calls block main UI thread #19

kreativityapps opened this issue Dec 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@kreativityapps
Copy link

The function calls are futures, but they still block the main UI thread causing jank, frozen app.

Steps to reproduce the behavior:

  1. Load a bigger image as Uint8List. The bigger the image, the longer the freezing time.
  2. Use on this any of the ImgProc methods, ex ImgProc.resize, ImgProc.blur
  3. See freeze

Expected behavior
The method call shouldn't block the main UI thread.

Additional context
If the methods would be sync calls we could use compute, isolates avoiding this issue.

@kreativityapps kreativityapps added the bug Something isn't working label Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant