How to change application launcher icon in flutter

Every mobile app should and must have a launcher icon. In flutter, it uses the Flutter logo as the default flutter icon.

Flutter logo

Today, i’ll introduce you to a simple package that makes it easy to change your launcher icon.

Import the flutter_launcher_icons from pub and import it to your pubspec.yaml file

flutter_launcher_icons: "^0.6.1"

Now, Prepare an app icon for the specified path. e.g. icon/icon.png

Next, back to pubspec.yaml, add this code to your dev_dependecies section.

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

NOTE: you may change icon/icon.png to what you want.

Now, head to tour terminal and run this command:

flutter pub pub run flutter_launcher_icons:main

That’s it. That’ll generate app launcher icons for you.

Add a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

50% Discounts On Projects

Do you have a custom project with a clear requirements, we are currently giving a 50% discount on all projects.

We will work with you to ensure we deliver what you need.

If you have questions or want to chat with us, you can reach us on Skype (henry.tochi)

Languages and technologies we use - Java, Kotlin, Laravel, Vue, React, Flutter, Swift and more.