Error handling enhancement
Title
Error handling when loading and parsing SVG files.
Purpose
This PR is support for another PR to flutter_svg, which will fix some related issues: https://github.com/dnfield/vector_graphics/issues/219 https://github.com/dnfield/flutter_svg/issues/1100 https://github.com/dnfield/flutter_svg/issues/1085 https://github.com/dnfield/flutter_svg/issues/1080 https://github.com/dnfield/flutter_svg/issues/1044 https://github.com/dnfield/flutter_svg/issues/996 https://github.com/dnfield/flutter_svg/issues/1007
Changes Made
- catch error cases and return results to SVGPicture.
Testing
- Already tested by example and unit test in flutter_svg
Impact
This change should not affect other parts of the library.
Hi there, The Flutter team is now maintaining these packages in the flutter/packages repository at packages/vector_graphics and packages/vector_graphics_compiler. We'd appreciate it if you could direct this PR to those locations instead. Thanks!