Tuesday, December 6, 2022
HomeiOS Developmentandroid - Flutter: flutter_launcher_icons generates deformed icon

android – Flutter: flutter_launcher_icons generates deformed icon

I’m utilizing flutter_launcher_icons (0.11.0) to generate my launcher icons. Sadly, the end result for Android is all the time deformed:

android icon

It really works nice on IOS:


Right here is my config:

  android: true
  image_path_android: "property/icons/android/background.png"
  adaptive_icon_background: "property/icons/android/background.png"
  adaptive_icon_foreground: "property/icons/android/foreground.png"
  ios: true
  image_path_ios: "property/icons/ios/iconx1024.png"
  min_sdk_android: 21

Listed here are the dimension of the pictures I used (imgur):

background.png (512x512)
foreground.png (390x390)
// For IOS I'm utilizing a mixed picture:
iconx1024.png (1024x1024)

I’m testing on an emulator (Pixel 3 API 31).
I’ve tried going the “native route” by simply copying the pictures from icon.kitchen and that works. Nevertheless, I’m beneath the impression that this shouldn’t be necassary with flutter_launcher_icons.

How do I make the Android icon work correctly with flutter_launcher_icons ?



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments