Professional Documents
Culture Documents
Neila Follow
Save
How it works
Here I will use NameMe as an example.
https://medium.com/@psyanite/how-to-add-app-launcher-icons-in-flutter-bd92b0e0873a 1/3
14/11/22, 8:10 How to add app launcher icons in Flutter | by Neila | Medium
Three custom png files will be added to the project, and after updating pubspec.yaml
Get unlimited access Open in app
and running the plugin, all remaining assets will be generated and automatically
packaged when executing flutter run or flutter build .
I would highly recommend using Illustrator to create your assets, and use 900x900.
For more information on how to create an Android adaptive icon see this article by
Nick, it includes Bjango templates which you may find useful. See the NameMe
Android Illustrator file and iOS template.
Instructions
1. First create a background.png and a foreground.png file for an Android adaptive
icon, see examples and test your assets at Adapticon.
Android assets
2. Then create a single icon.png for iOS and fallback for Android, I think I’ve made
mine wrong, please try using this template. I would recommend one Android
fallback icon (with drop shadow) and follow the template for the iOS one.
iOS asset
4. Edit pubspec.yaml
dev_dependencies:
flutter_launcher_icons: "^0.7.0"
https://medium.com/@psyanite/how-to-add-app-launcher-icons-in-flutter-bd92b0e0873a 2/3
14/11/22, 8:10 How to add app launcher icons in Flutter | by Neila | Medium
flutter_icons:
ios: true
Get unlimited access Open in app
android: true
image_path_ios: "assets/launcher/icon.png"
image_path_android: "assets/launcher/icon.png"
adaptive_icon_background: "assets/launcher/background.png"
adaptive_icon_foreground: "assets/launcher/foreground.png"
6. Verify that you can see the new icon when running flutter run or flutter build
and Party 🎉
More resources
flutter_launcher_icons
1.6K 9
https://medium.com/@psyanite/how-to-add-app-launcher-icons-in-flutter-bd92b0e0873a 3/3