mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 04:57:23 +00:00
fix ui
This commit is contained in:
@@ -148,6 +148,10 @@ class CachedImageProvider extends BaseImageProvider<CachedImageProvider> {
|
||||
|
||||
@override
|
||||
Future<Uint8List> load(StreamController<ImageChunkEvent> chunkEvents) async{
|
||||
chunkEvents.add(const ImageChunkEvent(
|
||||
cumulativeBytesLoaded: 0,
|
||||
expectedTotalBytes: 1,
|
||||
));
|
||||
var cached = await CacheManager().findCache(key);
|
||||
if(cached != null) {
|
||||
chunkEvents.add(const ImageChunkEvent(
|
||||
|
Reference in New Issue
Block a user