You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you provide a bundle argument to SvgPicture.asset and use Image.asset(...), then in profile and release modes the following exception will be thrown and svg won't be displayed:
If you provide a
bundle
argument toSvgPicture.asset
and useImage.asset(...)
, then in profile and release modes the following exception will be thrown and svg won't be displayed:Exception
That's because CachingAssetBundle stores futures in its fields, SvgAssetLoader stores bundle (if you provided one) and SvgLoader somehow sends it to other isolate in compute.
Debug build doesn't have this problem because it doesn't use other isolate.
Reproducible with Flutter 3.24.1 and
flutter_svg: 2.0.10+1
.Sample app
assets/any_svg.svg
andassets/any_png.png
are literally any svg and png files respectively.Problem can be fixed with the following change, but I don't sure how adequate it is.
Change that fixes problem
The text was updated successfully, but these errors were encountered: