Error handling enhancement
Title
Error handling when loading and parsing SVG files.
Purpose
This PR is related to https://github.com/dnfield/vector_graphics/pull/258, 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.
- expose errorWidgetBuilder.
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 this package in the flutter/packages repository at this location. We'd appreciate it if you could direct this PR to that location instead. Thanks!
Hi @zanderso Here is my PR to flutter/packages. Thanks for your response.
any plans to merge this soon?