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

Universal BlurHash widget #51

Open
zs-dima opened this issue Jun 17, 2022 · 1 comment
Open

Universal BlurHash widget #51

zs-dima opened this issue Jun 17, 2022 · 1 comment

Comments

@zs-dima
Copy link

zs-dima commented Jun 17, 2022

Remote resource to download image is very specific way to use BlurHash widget.
Images could be loaded in many different ways using different protocols.
Could be nice to make BlurHash widget universal.

@dhikshith12
Copy link

Yes, to solve this i had build a package blurhash_ffi that takes in any ImageProvider subclass, which includes AssetImage, NetworkImage, MemoryImage, etc. it has both encoding and decoding which runs on a separate isolate with native C bindings found in original blurha.sh implementation.

It has Same API as flutter_blurhash and blurhash_dart, which is nice because you don't have to change much in your code.

Checkout if you are interested!

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