# flutter_blurhash 0.6.8

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.6.8'
```
Published: 2022-04-21T17:03:53.631827Z
Expected archive SHA-256: 93f1c766a03dee60ced31b4b536fbc406c21c9cfac3064fd4138129bff44444d

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

## 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)
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=%20%40BlueAquilae)](https://twitter.com/blueaquilae)
# 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) => MaterialApp(
    home: Scaffold(
      appBar: AppBar(title: const Text("BlurHash")),
      body: const SizedBox.expand(
        child: Center(
          child: AspectRatio(
            aspectRatio: 1.6,
            child: BlurHash(hash: "L5H2EC=PM+yV0g-mq.wG9c010J}I"),
          ),
        ),
      ),
    ),
  );
}
```



## Changelog
# 0.6.8

- ImageNetwork can receive an errorBuilder

# 0.6.7

- Rollback call to compute() and isolates as performances are down

# 0.6.6

- Add headers for secure auth calls

# 0.6.4 

- onDecoded() and onDisplayed() events

# 0.6.2

- package update

# 0.6.0

- stable release for flutter 2.0

# 0.5.4-nullsafety.0

- nullsafety.1

# 0.5.2-nullsafety.0

- nullsafety.0

# 0.5.1

- Update dependencies

# 0.5.0

- Flutter Web compatibility thanks to @deakjahn

# 0.4.2

- Remove dependency on Image package

# 0.4.1

- Correction with Object Type method that is internal only

# 0.4.0

- Direct ImageProvider by Rene Floor

# 0.3.0

- Events registration to sync your animations

# 0.2.1

- Automatic network image load with FadeIn Effect

# 0.2.0+3

- Temporary removed ColoredBox until it lands on stable channel

# 0.2.0+2

- Code cleanup

# 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







 
