flutter_svg_provider
flutter_svg_provider copied to clipboard
svg file from cached image not working
i was trying to load svg from cached data, and I'm using flutter_cache_manager.
here is my demo code,
Image(
width: 32,
height: 32,
image: Svg(svgCach.path),
)
but it show some error
======== Exception caught by image resource service ================================================
The following assertion was thrown resolving a single-frame image stream:
Unable to load asset: "/data/user/0/com.example.example/cache/libCachedImageData/5d7b41a0-2869-11ee-8a7c-19fa185feb9e.svg".
Same I've got, I can reproduce this when my app open app settings and returns in couple seconds back, all my icons are corrupted and I've got the same error:
The following _Exception was thrown resolving a single-frame image stream: Exception: operation failed
When the exception was thrown, this was the stack