vector_graphics icon indicating copy to clipboard operation
vector_graphics copied to clipboard

Error handling enhancement

Open minhhung2556 opened this issue 1 year ago • 1 comments

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.

minhhung2556 avatar Oct 04 '24 10:10 minhhung2556

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!

zanderso avatar Nov 01 '24 21:11 zanderso