user15369973
user15369973

Reputation:

Flutter Basics: Error: Type 'AssetBundle' not found. AssetBundle' isn't a type

enter image description here

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

Upvotes: 0

Views: 4901

Answers (2)

Denzel
Denzel

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

KuKu
KuKu

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

Related Questions