v1.5.0
cached_memory_image
Base64 및 Uint8List에서 이미지를 표시하고 캐시 디렉터리에 저장하는 데 사용할 수 있는 Flutter 라이브러리입니다.
50좋아요 5.3천30일 다운로드140Pub 점수
AndroidiOSmacOSWindowsLinux
Base64 및 Uint8List에서 이미지를 표시하고 캐시 디렉터리에 저장하는 데 사용할 수 있는 Flutter 라이브러리입니다.
{"sdk":"flutter"}^3.3.1{"sdk":"flutter"}^2.0.3아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter library to show images from the Base64, Uint8List and keep them in the cache directory.
final cachedImageManager = CachedImageBase64Manager.instance();
await cachedImageManager?.isExists('app://image/1');
await cachedImageManager?.removeFile('app://image/1');
CachedMemoryImage(
uniqueKey: 'app://image/1',
base64: 'iVBORw0KGgoAAAANSUhEUgAAAk0AAAFwCAYAAACl9k...',
),
CachedMemoryImageProvider(
'app://image/6',
base64: 'iVBORw0KGgoAAAANSUhEUgAAAk0AAAFwCAYAAACl9k...',
)
CachedMemoryImage(
uniqueKey: 'app://image/1',
bytes: Uint8List.fromList([1,2,3,4,5]),
)
CachedMemoryImageProvider(
'app://image/5',
bytes: Uint8List.fromList([1,2,3,4,5]),
)
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.5.0
Padding(
padding: const EdgeInsets.all(8.0),
child: CachedMemoryImage(
uniqueKey: 'app://image/1',
base64: 'iVBORw0KGgoAAAANSUhEUgAAAk0AAAFwCAYAAACl9k...',
),
)
Padding(
padding: const EdgeInsets.all(8.0),
child: CachedMemoryImage(
uniqueKey: 'app://image/1',
bytes: Uint8List.fromList([1,2,3,4,5]),
),
)
The cached memory images stores and retrieves files using the flutter_cache_manager.