Home > Software design >  Flutter Basics: Error: Type 'AssetBundle' not found. AssetBundle' isn't a type
Flutter Basics: Error: Type 'AssetBundle' not found. AssetBundle' isn't a type

Time:11-11

enter image description here

After I added the flutter_svg: ^0.23.0 1 in pubsec.yaml getting these error.

CodePudding user response:

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
  • Related