gits_cached_network_image

Last updated:

0 purchases

gits_cached_network_image Image
gits_cached_network_image Images
Add to Cart

Description:

gits cached network image

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),
);
copied to clipboard
Image(image: GitsCachedNetworkImageProvider(url))
copied to clipboard
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',
),
),
),
),
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.