# flutter_blurhash 0.1.2

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'flutter_blurhash:0.1.2'
```
Published: 2020-02-24T20:23:48.208892Z
Expected archive SHA-256: 271cb2701a4d82adce282b8b4ba3b1844c540ec8c55dab06a7f83e088e6ae85e

Available in cache; verification: upstream_checksum
## Direct dependencies
- flutter: map[sdk:flutter]
- image: ^2.1.4

## Package README (untrusted upstream documentation)
# Flutter BlurHash

Compact representation of a placeholder for an image.


## Generation

<img width="1211" alt="Capture d’écran 2020-02-21 à 19 11 56" src="https://user-images.githubusercontent.com/1295961/75059847-129d6800-54de-11ea-8832-d19ea58eb7eb.png">

You can use https://blurha.sh/ for testing or use any official api on your server side.


## Flutter Code

Constrain your widget render area and let BlurHash fill the pixels

```dart
class BlurHashApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
            appBar: AppBar(
              title: Text("BlurHash"),
            ),
            body: Container(
              width: 800,
              child: AspectRatio(
                  aspectRatio: 1.6, child: BlurHash(hash: "L5H2EC=PM+yV0g-mq.wG9c010J}I")),
            )),
      );

  const BlurHashApp();
}
```



## Changelog
# 0.1.2

- Performances and extended list as example

# 0.1.1

- Documentation and cleanup

# 0.1.0

- Released the decoder and basic widget






 
