cached_memory_image

Creator: coderz1093

Last updated:

0 purchases

cached_memory_image Image
cached_memory_image Images

Languages

Categories

Add to Cart

Description:

cached memory image

cached_memory_image #

A Flutter library to show images from the Base64, Uint8List and keep them in the cache directory.
Features #
Check file is exists
final cachedImageManager = CachedImageBase64Manager.instance();

await cachedImageManager?.removeFile('app://image/1');
copied to clipboard
Cached Image from Base64

Widget

CachedMemoryImage(
uniqueKey: 'app://image/1',
base64: 'iVBORw0KGgoAAAANSUhEUgAAAk0AAAFwCAYAAACl9k...',
),
copied to clipboard

Image Provider

CachedMemoryImageProvider(
'app://image/6',
base64: 'iVBORw0KGgoAAAANSUhEUgAAAk0AAAFwCAYAAACl9k...',
)
copied to clipboard
Cached Image from Uint8List

Widget

CachedMemoryImage(
uniqueKey: 'app://image/1',
bytes: Uint8List.fromList([1,2,3,4,5]),
)
copied to clipboard

Image Provider

CachedMemoryImageProvider(
'app://image/5',
bytes: Uint8List.fromList([1,2,3,4,5]),
)
copied to clipboard
Getting started #
It is really easy to use! You should ensure that you add the cached_memory_image as a dependency in your flutter project.
cached_memory_image: "^1.2.1"
copied to clipboard
Usage #

Cached image from Base64 and Display

Padding(
padding: const EdgeInsets.all(8.0),
child: CachedMemoryImage(
uniqueKey: 'app://image/1',
base64: 'iVBORw0KGgoAAAANSUhEUgAAAk0AAAFwCAYAAACl9k...',
),
)
copied to clipboard

Cached image from Uint8List and Display

Padding(
padding: const EdgeInsets.all(8.0),
child: CachedMemoryImage(
uniqueKey: 'app://image/1',
bytes: Uint8List.fromList([1,2,3,4,5]),
),
)
copied to clipboard
How it works #
The cached memory images stores and retrieves files using the flutter_cache_manager.

License

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

Customer Reviews

There are no reviews.