flutter_launcher_icons icon indicating copy to clipboard operation
flutter_launcher_icons copied to clipboard

[BUG] IconRound not being generated

Open tapizquent opened this issue 5 years ago • 13 comments

:information_source: Info

Version: e.g. v0.8.1

:speech_balloon: Description

New version of Android require a new tag in the application android:roundIcon="@mipmap/ic_launcher_round" in order to render the round icons. If this is not provided, it tries to render a square icon and fits it to the circle, leaving some white space round which looks horrible.

It would be good for this package to not only generate the Square icons, but to also include this round ones so that the icons looks good across all devices.

:scroll: Pubspec.yaml

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_launcher_icons: ^0.8.1

flutter_icons:
  android: true
  ios: true
  image_path: "assets/images/app_icon.jpg"

tapizquent avatar Jan 13 '21 21:01 tapizquent

I'm trying to get this working and when using only the image_path this is what the icons look like on ios (left) and android (right).

ios-vs-android

when using adaptive_icon_foreground and adaptive_icon_background instead, the icon's foreground get's scaled up (tested on pixel and oneplus devices.)

Screenshot 2021-01-29 at 10 20 13

lechnerio avatar Jan 29 '21 09:01 lechnerio

Not sure how to get this to work, Testing on Pixel 4 with Android 11.

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon.png"
  icon_adaptive_foreground: "assets/icon.png"
  icon_adaptive_background: "#000000"

Screenshot_20210214-200022

Naphier avatar Feb 15 '21 01:02 Naphier

Any updates on this?

techno-disaster avatar Feb 16 '21 14:02 techno-disaster

bumping, i also would like this fixed

emptyopen avatar Mar 18 '21 02:03 emptyopen

I have the same problem. Fix would be appreciated.

flutter-clutter avatar Apr 15 '21 07:04 flutter-clutter

Im using this as a workaround

flutter_icons:
  adaptive_icon_foreground_scale_factor: 0.66
  
dev_dependencies:
  flutter_launcher_icons:
    git:
        url: https://github.com/knyghtryda/flutter_launcher_icons
        ref: scaling

dependency_overrides:
  yaml: ^3.1.0
  image: ^3.0.2

sooxt98 avatar May 02 '21 10:05 sooxt98

@sooxt98 thanks for the workaround, it's working pretty well for me.

emptyopen avatar May 06 '21 03:05 emptyopen

Do I need to use adaptive icons to generate the rounded icons?

Urkman avatar May 18 '21 06:05 Urkman

Any updates on this?

Other workaround would be:

In AndroidManifest.xml add android:roundIcon="@mipmap/ic_launcher_round" Screenshot 2021-05-19 at 16 31 20 Generate the round images with Android Studio Image Asset. For this step I created an empty android project and navigate to file > new > image asset.

Copy-paste the round images generated in the step before into the project android > app > src > flavor, like this:

Screenshot 2021-05-19 at 16 26 23

AndreaRov avatar May 19 '21 14:05 AndreaRov

I have the same problem, icons generated by flutter_launcher_icons are not round, is there a support for Android round icons in flutter_launcher_icons plugin? Without need to use other methods like native icons, etc?

adminant avatar Jan 06 '22 11:01 adminant

I had to generate mine manually but this website has a helpful builder https://romannurik.github.io/AndroidAssetStudio/index.html

b099l3 avatar Feb 28 '22 16:02 b099l3

After wasting more than 2 hours using this package, finally went to this website and generated adaptive icons in a minute: https://easyappicon.com/

Siddharth2212 avatar Jun 15 '22 04:06 Siddharth2212

Any updates on this? It's been 2 years already..

quoc-huynh-cosee avatar Oct 17 '23 14:10 quoc-huynh-cosee