Every platform wants your icon in a different set of sizes and formats. iOS wants a full-bleed square with no transparency. Android wants adaptive layers that survive circles, squircles and themed tints. Doing that by hand is slow and easy to get wrong, so most Flutter projects use flutter_launcher_icons to generate all of it from one config.
This post covers the config, the platform rules behind each option, and how to check the result. It is part of building a Flutter app with Claude Code. For the full table of sizes, see app icon sizes for iOS and Android.
Prepare the artwork first
You need up to three images. Start from a square master.
- Main icon: a square PNG. Apple’s icon specifications list “1024x1024 px” for iOS, iPadOS and macOS, so make your master that size. For iOS it must be full-bleed. The package warns: “iOS icons should fill the entire image and not contain transparent borders.”
- Android adaptive foreground: your logo on a transparent background, with the logo inside the safe zone (below).
- Android monochrome (optional): a single-color version of the logo for themed icons.
Do not pre-round the corners. Apple says the system applies “masking to produce rounded corners,” and “providing layers with pre-defined masking negatively impacts specular highlight effects and makes edges look jagged.” Android launchers apply their own mask too.
Keep text out unless it is your brand. Apple: “Text in icons doesn’t support accessibility or localization, is often too small to read easily, and can make an icon appear cluttered.”
Android adaptive icon rules
Android’s adaptive icon spec is what decides how your foreground image should look:
- “Size all layers to 108x108 dp.”
- Use a logo “at least 48x48 dp. It must not exceed 66x66 dp, because the inner 66x66 dp of the icon appears within the masked viewport.”
- “The outer 18 dp on each of the four sides of the layers is reserved for masking and to create visual effects such as parallax or pulsing.”
In practice: put the logo in the middle 61 percent of your foreground image (66 of 108) and leave the rest transparent. If the logo touches the edges, a circular launcher will cut it off.
Themed icons: from Android 13 (API level 33), users can theme icons, and the launcher tints apps “that have a monochrome layer in their adaptive icon.” Google also notes that from Android 16 QPR 2, Android “automatically themes app icons for apps that don’t provide their own.” Supplying your own monochrome layer keeps control of how that looks.
Install and configure
Add it as a dev dependency:
dev_dependencies:
flutter_launcher_icons: ^0.14.4
That was the current version when this post was written; check pub.dev for newer releases.
You can put the config in pubspec.yaml or in its own file. To create a starter file:
dart run flutter_launcher_icons:generate
That creates flutter_launcher_icons.yaml. A config for both mobile platforms:
flutter_launcher_icons:
image_path: "assets/icon/icon.png"
android: "launcher_icon"
min_sdk_android: 21
adaptive_icon_background: "#0E3B43"
adaptive_icon_foreground: "assets/icon/foreground.png"
adaptive_icon_monochrome: "assets/icon/monochrome.png"
ios: true
remove_alpha_ios: true
background_color_ios: "#0E3B43"
What the less obvious keys do:
android: "launcher_icon"generates a new launcher icon with the name you give. Set it totrueto “Override the default existing Flutter launcher icon” instead.adaptive_icon_backgroundtakes a color or an image asset. The package says “Adaptive Icons will only be generated when both adaptive_icon_background and adaptive_icon_foreground are specified.”remove_alpha_ios“Removes alpha channel for IOS icons.”background_color_iosis the color used as the background when the alpha channel is removed.
The package also supports web, windows and macos blocks if you ship there.
Generate
flutter pub get
dart run flutter_launcher_icons
The package writes Android mipmaps and the adaptive icon XML, and fills the iOS AppIcon asset catalog. Commit the generated files; they are part of your app, not build output.
If your config is not in the default place, pass it:
dart run flutter_launcher_icons -f my_icons.yaml
Different icons per flavor
A separate dev icon is the easiest way to avoid testing in the wrong app. The package supports flavors: create one config file per flavor named flutter_launcher_icons-<flavor>.yaml, in the same format. For example flutter_launcher_icons-dev.yaml can point at an icon with a “DEV” band. See Flutter flavors for dev and prod for the flavor setup itself.
Layered icons and Icon Composer
Apple’s current guidelines describe layered icons with default, dark, clear and tinted appearances, built with Icon Composer. Apple says you can provide “nonlayered bitmap images (such as PNG) or layered Icon Composer files.” If you provide a bitmap, “the system attempts to segment your icon,” and “the system automatically generates variants you don’t provide.”
So a PNG generated by flutter_launcher_icons still works. If you want full control of the dark and tinted versions, design them in Icon Composer and add the result in Xcode. App Store Connect’s help says you can create the icon “using Icon Composer or add your app icon to an asset catalog within your Xcode project.”
Store listing icons are separate
The launcher icon inside your app is not the same upload as the store listing icon.
- Google Play needs its own listing icon: “32-bit PNG (with alpha)”, “512px by 512px”, “Maximum file size: 1024KB.” Upload it in the store listing.
- App Store takes the icon from your build.
Apple also says: “If you want to change your app icon after publishing, you must create and upload a new version of your app.” Get it right before you submit. Your icon also appears next to your screenshots, so check it in context with the App Store screenshot sizes guide.
Check the result
Do not trust the generator output until you have seen it on devices:
- Run on an Android emulator and long-press the icon; check circle and squircle masks in different launchers if you can.
- On Android 13+, enable themed icons and check the monochrome version.
- On iOS, check the home screen in light and dark mode.
- Look at it small: in Settings, Spotlight and the notification banner.
- Archive and validate with Xcode before upload (see Flutter build IPA).
Add these to your mobile app QA checklist, and make sure the icon is not a copy of a competitor’s, which Apple treats under its copycat rules (see Guideline 4.1 copycats).
MobileKit’s design skill produces the icon master and the three layers, then runs this generator as part of the build.
Sources read on the day this post was written: flutter_launcher_icons on pub.dev, Android: Adaptive icons, Apple HIG: App icons, App Store Connect: Add an app icon and Play Console: Graphic assets.