How To Add App Launcher Icons In Flutter Android App

admin_img Posted By Bajarangi soft , Posted On 29-10-2020

we are going to learn how to change the app icon of a flutter app. App icon is the first impression of any app and it should be eye catching. It plays a very crucial part in terms of app downloads. Please note that I said app download, users download your app by only seeing your app icon but it depends on your app features that user will continue using your app.

How To Add App Launcher Icons In Flutter Android App

App Launcher Icons
Step 1 
  - First and basic step is to create a new application in flutter. If you are a beginner in flutter, please check my blog Create your first app in Flutter. I have created app named as “flutter_app_icon”

Step 2
 - 
I found one plugin to set app icon in flutter named “flutter_launcher_icons”. We'll use this plugin to set the app icon in flutter.  Add this plugin in pubspec.yaml file in project root directory. Please check below code,

 

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: "^0.8.0"
Step 3
   And then Save the file and run flutter pub get on terminal.

Step 4  
   
Create a folder assets in the root of the project in folder assets also create a folder icon and place your app icon inside this folder. I will recommend to user 1024x1024 app icon size. I have placed app icon inside icon folder and now I have app icon path as assets/icon/icon.png

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

Step 5

Save the file and run flutter pub get on terminal. After running command run second command as below flutter pub run flutter_launcher_icons:main -f pubspec.yaml 

Related Post