cached_memory_image 1.0.0 copy "cached_memory_image: ^1.0.0" to clipboard
cached_memory_image: ^1.0.0 copied to clipboard

outdated

A Flutter library to show images from the Base64, Uint8List and keep them in the cache directory.

cached_memory_image #

A Flutter library to show images from the Base64, Uint8List and keep them in the cache directory.

Features #

Cached Image from Base64

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

Cached Image from Uint8List

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

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.0.0"

Usage #

  • Cached image from Base64 and Display
Padding(
  padding: const EdgeInsets.all(8.0),
  child: CachedMemoryImage(
    uniqueKey: 'app://image/1',
    base64: 'iVBORw0KGgoAAAANSUhEUgAAAk0AAAFwCAYAAACl9k...',
  ),
)
  • 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]),
  ),
)

How it works #

The cached network images stores and retrieves files using the flutter_cache_manager.

41
likes
0
pub points
93%
popularity

Publisher

verified publisherwachasit.com

A Flutter library to show images from the Base64, Uint8List and keep them in the cache directory.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_cache_manager

More

Packages that depend on cached_memory_image