blurhash_flutter 0.1.0 copy "blurhash_flutter: ^0.1.0" to clipboard
blurhash_flutter: ^0.1.0 copied to clipboard

outdated

Blurhash algorithm for dart.

blurhash #

This library is a Blurhash algorithm implementation for dart. For more information or other implementations go to https://github.com/woltapp/blurhash.

Instead of showing boring placeholders, just show an idea of the picture while the actual picture is loading! Images can be converted to Base83 on your backend or while uploading in the frontend. Afterwards, you can send the Base83 string to your frontend. The client can then decode the Base83 string and draw the blurred image.

Original Blurred
Image original original

Based on the hash q.NK3Mt7WrofayazbHj[l.TkCWBWCj[j@f6azIUWXjZWBWCjsoLayM{ofazayjZa#Wqj[kCWBj[bHWXj[jZWVt7WCs:ofa}axjZay

Example usage

See the example in example_main

original

Getting started #

Include the library in your project. Then call the decoder with a valid Base83 string

Image.memory(blurhash.Decoder.decode(hash, 300, 200))

Credits go to Dag Ågren / Wolt for this idea.

0
likes
30
pub points
82%
popularity

Publisher

unverified uploader

Blurhash algorithm for dart.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on blurhash_flutter