How Flutter app icons work
A Flutter app has native android and ios folders with their own icons. The flutter_launcher_icons package generates them from a few source images and a config, so you never resize anything by hand.
Set it up
- Copy
flutter/assets/iconfrom the ZIP intoassets/icon. - Copy
flutter_launcher_icons.yamlnext topubspec.yaml. - Add the package and generate the icons:
flutter pub add dev:flutter_launcher_icons
dart run flutter_launcher_iconsA generated config looks like this:
flutter_launcher_icons:
android: true
ios: true
image_path: "assets/icon/icon.png"
remove_alpha_ios: true
adaptive_icon_background: "#ffffff"
adaptive_icon_foreground: "assets/icon/foreground.png"
adaptive_icon_monochrome: "assets/icon/monochrome.png"