A Flutter package that displays BlurHash image placeholders for smooth loading experiences.
flutter_blurhash is a Flutter package that implements the BlurHash algorithm to display compact, blurred image placeholders while full images load. It solves the problem of blank spaces during image loading by providing meaningful visual previews that improve perceived performance. The package includes a widget that can seamlessly transition from the blurhash placeholder to the actual loaded image.
Flutter developers building image-heavy applications who want to improve loading experiences and perceived performance. Mobile app developers working with galleries, social feeds, or content platforms where images load asynchronously.
Developers choose flutter_blurhash because it provides a pure Dart implementation of BlurHash with multiple optimization modes for different performance needs. It offers a simple widget-based API that integrates seamlessly into Flutter's widget tree and supports smooth transitions between placeholder and actual images.
Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements the BlurHash decoding algorithm entirely in Dart, ensuring cross-platform compatibility and no native dependencies, as highlighted in the README.
Provides a BlurHash widget that seamlessly transitions from the blurred placeholder to the loaded image, improving perceived performance without layout shifts.
Offers multiple decoding modes like approximation for faster processing, allowing developers to trade off slight visual accuracy for better speed, as detailed in the optimization section.
Encodes image placeholders in under 30 characters, reducing data transmission and storage overhead, which is ideal for image-heavy apps with limited bandwidth.
The package only decodes BlurHash strings; generating hashes from images requires external tools like blurha.sh, limiting on-device functionality and adding workflow complexity.
Relies on third-party services for hash creation, which can be a bottleneck for privacy-sensitive images or offline use cases, as admitted in the README.
The approximation optimization mode produces slightly darker results, compromising visual fidelity for performance, which might not meet all design requirements.
Limited to Flutter applications, so it's not reusable for teams working with multiple frameworks or transitioning away from Flutter.