flutter_svg_provider icon indicating copy to clipboard operation
flutter_svg_provider copied to clipboard

svg file from cached image not working

Open ishafiul opened this issue 1 year ago • 1 comments

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".

ishafiul avatar Jul 23 '23 06:07 ishafiul

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

bbenetskyy avatar Oct 12 '23 16:10 bbenetskyy