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()
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