Home > other >  i have this error when when i try to build presistence database in flutter
i have this error when when i try to build presistence database in flutter

Time:11-06

enter image description here

Error: Type 'AssetBundle' not found. AssetBundle? bundle

CodePudding user response:

I don't think the problem is related to your database. The error comes from flutter_svg. Did you add a proper asset route in the end of your pubspec? Like this:

flutter: uses-material-design: true

assets: - assets/images/intro/

CodePudding user response:

This problem is not related to your persistant database, it's an error coming from the flutter_svg package you have installed. According to the issue #610, all you have to do is update Flutter to at least 2.5.0, to do this, run the following command in your terminal:

flutter upgrade

  • Related