flutter_svg icon indicating copy to clipboard operation
flutter_svg copied to clipboard

SvgPicture.network errorBuilder

Open KristianBalaj opened this issue 3 years ago • 8 comments

Is there any option to use e.g. errorBuilder in case of network fetch or svg parse error?

Something like currently the placeholderBuilder but in case of an error?

KristianBalaj avatar Apr 30 '21 23:04 KristianBalaj

The same problem

khaitran1234 avatar May 07 '21 09:05 khaitran1234

SvgPicture.*** .errorBuilder

qcks avatar May 17 '21 03:05 qcks

any news about it?

yohantsn avatar Sep 08 '21 17:09 yohantsn

Would also love this!

CelticMajora avatar Nov 23 '21 17:11 CelticMajora

Same. I have several SVGs that throw an exception while parsing and I have no way to detect this condition.

mstich-mcmservices avatar Oct 27 '23 18:10 mstich-mcmservices

Same here.

animator avatar Dec 16 '23 01:12 animator

same here ..

omarahmedx14 avatar Jan 10 '24 19:01 omarahmedx14

This would be very nice to have. I know the underlying VectorGraphics widget takes an errorBuilder, and I was considering submitting a PR, but I couldn't get it the errorBuilder callback to trigger when I set the status code of the fake http response to 400 in the tests. Does VG's errorBuilder only trigger on decode failures?

@dnfield

Reprevise avatar Jan 10 '24 23:01 Reprevise