Skip to content
pubscout

flutter_blurhash

0.9.1, released 2 years ago by fluttercommunity.dev

Widget that displays a BlurHash placeholder and transitions to the real image

WASM-ready
$ flutter pub add flutter_blurhash
Source repository

What it does

It decodes a BlurHash string into a blurred image and shows it while the actual image loads. Once loaded it fades to the real image.

AI-written summary of version 0.9.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a lightweight placeholder for network images
  • You want a quick visual cue before image download completes

Skip it when

  • You need to encode images into BlurHash
  • You require custom image processing beyond decoding

Strengths

  • Pure Dart implementation, no native dependencies
  • Supports multiple optimization modes for performance
  • Works on all Flutter platforms (web, mobile, desktop)

Weaknesses

  • No encoding support
  • Performance can be slower in standard mode
  • Limited to BlurHash only

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency to pubspec and import package

```dart
BlurHash(hash: "L5H2EC=PM+yV0g-mq.wG9c010J}I", optimizationMode: BlurHashOptimizationMode.approximation),
```

Alternatives

Packages that do the same job and could replace flutter_blurhash.

Works with

Packages commonly used together with flutter_blurhash: ones it builds on, ones built on it, and its own family.