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.