ub3lal 1 tháng trước cách đây
mục cha
commit
8d1c35405a
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      lib/src/CashedNetworkImageWidget.dart

+ 9 - 1
lib/src/CashedNetworkImageWidget.dart

@@ -181,7 +181,15 @@ class CachedNetworkImageProvider
           fileInfo = await defaultCacheManager.getFileFromCache(imageUrl);
         }
 
-        if (fileInfo != null) {}
+        if (fileInfo != null) {
+          final decodedImage = await decode(
+            await ImmutableBuffer.fromUint8List(
+              await fileInfo.file.readAsBytes(),
+            ),
+          );
+
+          return decodedImage;
+        }
       }
       Uint8List img;
       try {