Skip to content

fix(android): adaptive launcher icon with iOS-matching padding - #689

Merged
Zeroupper merged 4 commits into
testfrom
fix/android-icon-padding
Sep 18, 2026
Merged

Zeroupper merged 4 commits into
testfrom
fix/android-icon-padding

Conversation

@Zeroupper

Copy link
Copy Markdown
Collaborator

Problem

Android launcher icon had no padding — the CARP mark was stretched edge-to-edge in flat 192px PNGs. iOS uses an Icon Composer SVG with ~19% padding, so the two looked different.

Fix

  • `drawable/ic_launcher_foreground.xml` — vector using the same paths as `ios/Runner/AppIcon26.icon/Assets/icon_foreground.svg`, scaled so the mark fills ~75% of the visible area (same as iOS with its 1.2× layer scale).
  • `mipmap-anydpi-v26/ic_launcher.xml` — adaptive icon, white background + foreground.- `mipmap-anydpi-v26/ic_lh,xxh,xxxh}dpi/ic_launcher.png` — dead since `minSdk 28` (adaptive icons take precedence on API ≥ 26).
  • Bump to 5.0.2, changelog entry.

Old Android → new Android → iOS:

Zeroupper and others added 4 commits September 11, 2026 11:01
ci: upload release APK to existing GitHub release
The Android launcher used flat 192px PNGs with the CARP mark stretched
edge-to-edge, while iOS uses an Icon Composer SVG with ~19% padding.

Replace the PNGs with an adaptive icon whose foreground is a vector of
the same paths as ios/Runner/AppIcon26.icon/Assets/icon_foreground.svg,
scaled so the mark fills ~75% of the visible area like iOS. The density
PNGs are dead since minSdk 28 (adaptive icons take precedence >= 26).

Verified with flutter build apk; aapt2 dump badging resolves
mipmap-anydpi-v26/ic_launcher.xml for all densities.
@Zeroupper Zeroupper self-assigned this Sep 17, 2026
@Zeroupper
Zeroupper changed the base branch from master to test September 18, 2026 08:04
@Zeroupper
Zeroupper merged commit 5ec05f9 into test Sep 18, 2026
2 checks passed
@Zeroupper
Zeroupper deleted the fix/android-icon-padding branch September 18, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant