flutterpubspec.yaml

Not able to change launcher icon for flutter


This is my pubsec.yaml:

dev_dependencies:
  flutter_launcher_icons: "^0.13.1"
flutter_launcher_icons:

  android: "launcher_icon"
  ios: true
  image_path: "images/icon.png"

flutter:
  assets:
    - images/

This WORKED in my last project. This is the exact same thing that I did in the last project. The asset names or addresses are not wrong. I checked several times. So why does this not work this time? what am I doing wrong?


Solution

  • After setting up the configuration, all that is left to do is run the package.

    flutter pub get
    flutter pub run flutter_launcher_icons