Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.8k stars 875 forks source link

[BUG] #1110

Closed JasonYinH closed 2 years ago

JasonYinH commented 2 years ago

Because flutter_html >=2.0.0-nullsafety.1 <3.0.0-alpha.1 depends on flutter_svg >=0.22.0 <1.0.0 and blog depends on flutter_svg ^1.1.1+1, flutter_html >=2.0.0-nullsafety.1 <3.0.0-alpha.1 is forbidden. So, because blog depends on flutter_html ^2.2.1, version solving failed. pub get failed (1; So, because blog depends on flutter_html ^2.2.1, version solving failed.)

f1dz commented 2 years ago

This is not a bug, this happens when you are using flutter_svg version 1.x.x. The problem was flutter_html 2 still using flutter_svg version < 1. To resolve this problem, you can set flutter_html to version 3, but this is still in alpha and not ready for production because some features have not been added yet. Or you can use flutter_svg: 0.23.0+1 to solve it.

Sub6Resources commented 2 years ago

Duplicate of #1113