skip to Main Content

My app icon is broken and I don’t know why but it is black for android and it is different for ios like picture can anyone help me for this issue, I tried to recreate the app icon but it does not worked

flutter_launcher_icons: 
   android: "launcher_icon" 
   ios: true 
   image_path: "assets/icon/app_icon.png" 
   min_sdk_android: 21

enter image description here

To resolve app icon for real value

2

Answers


  1. Make sure the assets path is ok,

    dev_dependencies:
      flutter_launcher_icons: ^0.14.1
    
    flutter_launcher_icons:
      android: "launcher_icon"
      ios: true
      web:
        generate: true
      windows:
        generate: true
      macos:
        generate: true
      remove_alpha_ios: true
      image_path: "assets/icon.png"
      adaptive_icon_foreground: "assets/icon.png"
      adaptive_icon_background: "#ffffff"
    

    And run

    flutter pub run flutter_launcher_icons:main
    

    or

    dart run flutter_launcher_icons:generate
    

    Also do a flutter clean and rebuild the app.

    Login or Signup to reply.
  2. Clean Flutter and try again!

    flutter clean
    
    flutter pub run flutter_launcher_icons:main
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search