Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] IconRound not being generated #226

Open
tapizquent opened this issue Jan 13, 2021 · 13 comments
Open

[BUG] IconRound not being generated #226

tapizquent opened this issue Jan 13, 2021 · 13 comments

Comments

@tapizquent
Copy link

ℹ️ Info

Version: e.g. v0.8.1

💬 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.

📜 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 tapizquent changed the title [BUG] IconRound not being generated working [BUG] IconRound not being generated Jan 13, 2021
@lechnerio
Copy link

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

@Naphier
Copy link

Naphier commented Feb 15, 2021

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

@techno-disaster
Copy link

Any updates on this?

@emptyopen
Copy link

bumping, i also would like this fixed

@flutter-clutter
Copy link

I have the same problem. Fix would be appreciated.

@sooxt98
Copy link

sooxt98 commented May 2, 2021

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

@emptyopen
Copy link

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

@Urkman
Copy link

Urkman commented May 18, 2021

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

@AndreaRov
Copy link

AndreaRov commented May 19, 2021

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

@adminant
Copy link

adminant commented Jan 6, 2022

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?

@b099l3
Copy link

b099l3 commented Feb 28, 2022

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

@Siddharth2212
Copy link

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

@quoc-huynh-cosee
Copy link

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

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

No branches or pull requests