6

I was looking for changing the app icon of my current app. I cane around the package name flutter_launcher_icons.

I also found I can do by putting an image in mipmap-xxxhdpi in android/app/res folder. And it works.

So my question is why we need additional package(flutter_launcher_icons) for this.

Peter Haddad
81.2k26 gold badges148 silver badges149 bronze badges
asked Sep 23, 2019 at 10:14

1 Answer 1

15

When you use the package flutter_launcher_icons it will automatically generate different icon sizes for the app which is better than just putting an image in mipmap-xxxhdpi in android/app/res.

Example, if you add flutter_launcher_icons to the pubspec.yaml:

dev_dependencies: 
 flutter_launcher_icons: "^0.7.3"
flutter_icons:
 android: "launcher_icon" 
 ios: true
 image_path: "assets/icon/icon.png"

Then execute the following:

flutter pub get
flutter pub run flutter_launcher_icons:main

It will generate all the icons under different sizes in the res folder for android and Assets.xcassets for ios.

Check here for more information:

https://github.com/fluttercommunity/flutter_launcher_icons

answered Sep 23, 2019 at 10:28
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.