flutterdartflutter-android

How to set custom image icon on Flutter App? Using Appicon


I Tried changing my app's Icon on apk but it's not changing. I generated an icon on https://appicon.co/ and try changing but it's showing flutter's default app icon.


Solution

  • Try this flutter_launcher_icons

    In pubsec.yaml

     dev_dependencies:
      flutter_launcher_icons: "^0.10.0"
    
    flutter_icons:
      android: true
      ios: true
      image_path: "assets/icon/icon.png"
      min_sdk_android: 21 # android min sdk min:16, default 21
    

    And then run this on your terminal (from android studio)

    flutter pub run flutter_launcher_icons:main
    

    The command will regenerate icons for android and ios. You can check it in the corresponding folders (eg for android : app/src/main/res/drawable-xxx/ic_launcher)