dnfield / flutter_svg

SVG parsing, rendering, and widget library for Flutter
MIT License
1.66k stars 454 forks source link

flutter_svg throws an xml dependency runtime error #106

Open minimih opened 5 years ago

minimih commented 5 years ago

I encountered a runtime error after a did a clean build (flutter clean).

The XML dependency has some breaking changes in v3.3.0 with v3.2.5 it's working. As a workaround i defined the xml dependency in my project pubspec.yaml manually (xml: 3.2.5)

Possible solution is to change the flutter_svg pubspec.yaml to use xml: 3.2.5 instead of xml: ^3.2.5

dnfield commented 5 years ago

I can do that. I thought the caret would have not applied to that kind of bump though :(

minimih commented 5 years ago

in node.js the carret matches any 3.x.x releases. The tilde matches any 3.2.x releases. But i don't know if flutter/dart implements it the same.

dnfield commented 5 years ago

Fixed in 0.10.3

I'll be updating this to use the new API in the XML package at some point.