flutter_blurhash_loader 0.5.2 copy "flutter_blurhash_loader: ^0.5.2" to clipboard
flutter_blurhash_loader: ^0.5.2 copied to clipboard

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

Flutter Community: flutter_blurhash_loader

pub package

Flutter BlurHash Loader #

Thanks to original creators of BlurHash We have implemented Loader on BlurHash

Flutter Code #

Constrain your widget render area and let BlurHash fill the pixels.

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",
                showLoader: true,
                loaderColor: Colors.white,
                loaderWidth: 70,
                loaderHeight: 70,
                strokeWidth: 3,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
0
likes
30
pub points
9%
popularity

Publisher

unverified uploader

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

MIT (LICENSE)

Dependencies

flutter, meta

More

Packages that depend on flutter_blurhash_loader