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
My use case: I am trying to fallback to a svg in assets if my SvgPicture.network() fails for any reason (wrong url, request returns 404, invalid svg format, ...)
widgets like the Flutter Image fully support this errorBuilder and any error in the process (image loading/parsing/rendering) triggers the errorBuilder callback
From my observations:
SvgPicture widget does not accept errorBuilder
The vector_graphics package does not trigger errorBuilder for BytesLoader objects loadBytes() calls, it only triggers it for errors in decodeVectorGraphics()
image from vector_graphics.dart
The text was updated successfully, but these errors were encountered:
COPIED FROM dnfield/flutter_svg#996
My use case: I am trying to fallback to a svg in assets if my
SvgPicture.network()
fails for any reason (wrong url, request returns 404, invalid svg format, ...)widgets like the Flutter
Image
fully support thiserrorBuilder
and any error in the process (image loading/parsing/rendering) triggers theerrorBuilder
callbackFrom my observations:
errorBuilder
vector_graphics
package does not triggererrorBuilder
forBytesLoader
objectsloadBytes()
calls, it only triggers it for errors indecodeVectorGraphics()
image from
vector_graphics.dart
The text was updated successfully, but these errors were encountered: