piksel_blurhash

BlurHash placeholders for piksel: compact string hashes decode into instant placeholder images before the first network byte arrives.

void main() {
  PikselBlurhash.register(); // once
  runApp(...);
}

PikselImage(ImageRequest.network(
  url,
  placeholder: const BlurhashStateImage(r'LEHV6nWB2yk8pyo0adR*.7kCMdnj'),
));

The decoder is pure Dart (decodeBlurhashPixels) — no engine involvement, so it also runs in isolates, tests and on the server. Decoded hashes are memoised so lists of placeholders decode each hash once.

Libraries

piksel_blurhash
BlurHash placeholder support for piksel. Call PikselBlurhash.register once at startup; every BlurhashStateImage then renders a decoded hash.