# flutter_blurhash 0.2.0+1

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.2.0+1'
```
Published: 2020-04-14T22:56:43.345039Z
Expected archive SHA-256: 8dc220c10019914205fcf75971edf2a4e281dabdf9e80b074e772e49ca43a653

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

## Package README (untrusted upstream documentation)
[![Flutter Community: flutter_blurhash](https://fluttercommunity.dev/_github/header/flutter_blurhash)](https://github.com/fluttercommunity/community)

[![pub package](https://img.shields.io/pub/v/flutter_blurhash.svg)](https://pub.dev/packages/flutter_blurhash)

# 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 {
  const BlurHashApp({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text("BlurHash")),
        body: SizedBox.expand(
          child: Center(
            child: AspectRatio(
              aspectRatio: 1.6,
              child: BlurHash(hash: "L5H2EC=PM+yV0g-mq.wG9c010J}I"),
            ),
          ),
        ),
      ),
    );
  }
}
```



## Changelog
# 0.2.0

- Cleaned up BlurHash Widget
- Refactored and cleaned up decoder to a global method.
- Moved package to Flutter Community

# 0.1.2

- Performances and extended list as example

# 0.1.1

- Documentation and cleanup

# 0.1.0

- Released the decoder and basic widget







 
