blurhash_ffi
1.2.7, released 2 years ago by folksable.com
Blurry image placeholder generator and decoder using native FFI bindings.
What it does
Generates and decodes Blurhash image placeholders for Flutter using native C FFI bindings. It supports encoding any ImageProvider and decoding blurhashes via widgets, image providers, or static methods running in a separate isolate.
AI-written summary of version 1.2.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need high-performance Blurhash encoding and decoding in Flutter
- You want to display blurry placeholders while loading images across mobile and desktop platforms
Skip it when
- You prefer a pure Dart implementation without native FFI dependencies
Strengths
- Matches official Blurhash performance and quality via native C implementation
- Supports encoding and decoding across Android, iOS, Linux, macOS, and Windows
- Runs heavy tasks in a separate isolate to avoid UI jank
Weaknesses
- Requires manual release of isolate and memory using BlurhashFFI.free() when done
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
not documented
final imageProvider = BlurhashFfiImage("L5H2EC=PM+yV0g-mq.wG9c010J}I");Alternatives
Packages that do the same job and could replace blurhash_ffi.
- opencv_dart
Flutter bindings for OpenCV4 using dart:ffi.
84Compare - image_cropper
A Flutter plugin for Android, iOS and Web supports cropping images
84Compare - octo_image
A multifunctional Flutter image widget supporting placeholders, error widgets, and fading.
94Compare - cached_network_image
Load and cache network images in Flutter with placeholder and error widget support.
91Compare
Works with
Packages commonly used together with blurhash_ffi: ones it builds on, ones built on it, and its own family.