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

blocking functions like decodeGif #676

Open
cool2apps opened this issue Aug 27, 2024 · 0 comments
Open

blocking functions like decodeGif #676

cool2apps opened this issue Aug 27, 2024 · 0 comments

Comments

@cool2apps
Copy link

cool2apps commented Aug 27, 2024

This is a feature request.

Some functions like decodeGif blocks the UI. We need to implement isolate spawn to get rid of this block. Isolates are not easy to implement. Because send and receive ports have limitations which data we can send or we can not send. Even if we can succeed to implement an isolate and have a non blocking UI, we still can't give our users a percentage completed progress bar and we need to give a non determinitive circula progress indicator or similar. This will lower the user experience.

Is it possible to implement those blocking functions as async and provide a percentage completed callback like in video watermark package. This will improve our apps' user experience much better.

https://pub.dev/packages/video_watermark

This package creates a new video by adding a watermark (I assume this process is an heavy calculation like decodeGif) and does not block UI and provides a callback function for how many percent has been completed.

Thanks

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

1 participant