Reputation:
After I added the flutter_svg: ^0.23.0+1 in pubsec.yaml getting these error.
Upvotes: 0
Views: 4901
Reputation: 1109
If you do not want to upgrade your flutter, then this is also a viable solution,
use flutter_svg: ^0.22.0
https://github.com/dnfield/flutter_svg/issues/610#issuecomment-974614148
I'm on 2.2 and it is working very well.
Upvotes: 2
Reputation: 7502
Please check your Flutter version.
At flutter_svg github issue page, there is a same issue and solution comment.
https://github.com/dnfield/flutter_svg/issues/610
If you are on stable channel, make sure Flutter version is at least 2.5.0. You need at least 2.4.0 pre for the latest version of this package
Upvotes: 1