gits_cached_network_image 1.0.2 copy "gits_cached_network_image: ^1.0.2" to clipboard
gits_cached_network_image: ^1.0.2 copied to clipboard

Flutter library to load and cache network images. Can also be used with loading and error widgets.

Gits Cached Network Image #

A flutter library to show images from the internet and keep them in the cache directory.

How to use #

The GitsCachedNetworkImage can be used directly or through the ImageProvider.

With a loading:

GitsCachedNetworkImage(
  imageUrl: 'https://picsum.photos/id/2/200',
  loadingBuilder: (context) => const CircularProgressIndicator(),
  errorBuilder: (context, error, stackTrace) => const Icon(Icons.error),
);
Image(image: GitsCachedNetworkImageProvider(url))

When you want to set as background you can do with container:

Container(
    width: 200,
    height: 200,
    decoration: BoxDecoration(
        image: DecorationImage(
            image: GitsCachedNetworkImageProvider(
            'https://picsum.photos/id/2/200',
            ),
        ),
    ),
),
5
likes
90
points
31
downloads

Publisher

verified publishergits.id

Weekly Downloads

Flutter library to load and cache network images. Can also be used with loading and error widgets.

Homepage
Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, hive, http

More

Packages that depend on gits_cached_network_image