yang-f / flutter_svg_provider

Use svg as image provider.
https://pub.dev/packages/flutter_svg_provider
Apache License 2.0
46 stars 71 forks source link

svg file from cached image not working #49

Closed ishafiul closed 3 months ago

ishafiul commented 1 year ago

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".
bbenetskyy commented 11 months ago

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