Home > Enterprise >  Check that your config file `flutter_launcher_icons.yaml` has a `flutter_icons` section
Check that your config file `flutter_launcher_icons.yaml` has a `flutter_icons` section

Time:10-10

enter image description here

any one have solution to this problem i am running flutter pub run flutter_launcher_icons:main and it is not working for me

CodePudding user response:

Your pubspec.yaml should be like this:

dev_dependencies:
  flutter_launcher_icons: "^0.9.2"

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon/icon.png"

Notice where flutter_launcher_icons was used and where flutter_icons was used.

  • Related