hash_cached_image 0.0.1 copy "hash_cached_image: ^0.0.1" to clipboard
hash_cached_image: ^0.0.1 copied to clipboard

A flutter widget to use both CachedNetworkImage and BlurHash combine.

hash_cached_image #

A flutter widget to use both CachedNetworkImage and BlurHash combine.

Features #

  • CachedNetworkImage is provided.
  • BlurHash is provided.
  • Predefined loader while image is loading.

Getting started #

To use this package, add hash_cached_image as a dependency in your pubspec.yaml file.

Usage #

Minimal example:

    HashCachedImage(imageUrl: "your image url", hash: "your hash")

Custom settings:

    HashCachedImage(
          imageUrl: "your image url",
          hash: "your hash",
          fit: BoxFit.fill,
          height: 200,
          width: 200,
          alignment: Alignment.center,
          placeholder: (context, url) =>
              const Center(child: CupertinoActivityIndicator()),
          errorWidget: (context, url, error) => const Icon(Icons.error),
        )
8
likes
100
pub points
74%
popularity

Publisher

unverified uploader

A flutter widget to use both CachedNetworkImage and BlurHash combine.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

cached_network_image, flutter

More

Packages that depend on hash_cached_image