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
{{ message }}
Repository navigation
SvgPicture.network - Unhandled Exception: HttpException: Could not get network asset #881
When using SvgPicture.Network and the image could not be found, it throws the unhandled exception:
Unhandled Exception: HttpException: Could not get network asset, uri = http://127.0.0.1:1323/icon/person.svg
Version 2.0.3.
Could be fixed with try/catch and a parameter onException (as placeholderBuilder doesn't seem to affect it).
Activity
dnfield commentedon Mar 13, 2023
I'm trying to remember how this works with
Image.network. But.. I think throwing an exception is the right thing to do here?lemmerel commentedon Mar 13, 2023
Thank you for your quick reply, @dnfield.
Let me know what you think.
lemmerel commentedon Mar 13, 2023
What am I doing wrong?
dnfield commentedon Mar 13, 2023
Ok.
To do what you want here, you'd need some kind of
errorBuilderparameter on the SvgPicture.network constructor.Right now that's not implemented but probably isn't too hard.
lemmerel commentedon Mar 14, 2023
I, and I'm sure all of your other very grateful users, would really appreciate it if you did that.
lemmerel commentedon Apr 4, 2023
Any news here?
lemmerel commentedon Apr 6, 2023
@dnfield
dnfield commentedon Apr 10, 2023
This has been waiting on dnfield/vector_graphics#196
lemmerel commentedon Apr 10, 2023
dnfield commentedon Apr 10, 2023
Next steps will be to publish new vector_graphics* and then use it in flutter_svg.
glacials commentedon Aug 1, 2023
Thanks for your hard work! Seems like vector_graphics is all set, can this be pulled into flutter_svg?
tanis2000 commentedon May 13, 2024
any news on this?