ub3lal hace 1 mes
padre
commit
8d1c35405a
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  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 {