Skip to content

Change app icon in flutter

Prerequisites

  • Flutter project source code
  • Flutter plugin
  • Icon file (png or jpeg of 1024x1024px)

Step 1: Configure plugin

Place the plugin depencies and fetch it

dev_dependencies:
  flutter_launcher_icons: "^0.9.2"

to configure add lines

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

where android is name of the icon that will be used and exported into mipmap/. If you need ios to be exported too, set ios to true.

Step 2: Replace icon in the project

In flutter project folder find assets and replace the image with name icon.png or change filename in configuration for image_path

Step 3: Complete

Run command to get results

flutter pub run flutter_launcher_icons:main

More details can be found here Flutter Launcher Icons


Last update: March 22, 2023