flutter_blurhash 0.1.2 copy "flutter_blurhash: ^0.1.2" to clipboard
flutter_blurhash: ^0.1.2 copied to clipboard

outdated

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

Flutter BlurHash #

Compact representation of a placeholder for an image.

Generation #

Capture d’écran 2020-02-21 à 19 11 56

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

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();
}
1397
likes
0
pub points
98%
popularity

Publisher

verified publisherfluttercommunity.dev

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, image

More

Packages that depend on flutter_blurhash