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

In android the icon expands #249

Open
Ossyyrr opened this issue May 17, 2021 · 5 comments
Open

In android the icon expands #249

Ossyyrr opened this issue May 17, 2021 · 5 comments

Comments

@Ossyyrr
Copy link

Ossyyrr commented May 17, 2021

ℹ️ Info

Version: 2.0.5

💬 Description

When I generate icons in ios they appear exactly the same size as my icon.png. The problem is that on android they look much larger once you install the application on a device.

Could you add a default margin to the icons in android so that the icon fits the size it should be?

Android:
Captura de pantalla 2021-05-17 a las 15 33 51

IOS:
Captura de pantalla 2021-05-17 a las 15 34 17

📜 Pubspec.yaml

...
dev_dependencies:
...
flutter_launcher_icons: ^0.9.0

Run flutter pub run flutter_launcher_icons:main to set the icons.

flutter_icons:
image_path: "assets/icon/icon.png"
adaptive_icon_background: "#FF0070FF"
adaptive_icon_foreground: "assets/icon/adaptive_icon.png"
android: true
ios: true
...

@aklehm
Copy link

aklehm commented Jun 11, 2021

I have the same issue. Does somebody knows a fix or the reason for this issue?

@tfreund
Copy link

tfreund commented Jun 11, 2021

The only workaround, that worked for me, was to "resize" the foreground by applying a larger empty space around it so the foreground ist effectively smaller scaled.

@carman247
Copy link

Same issue - would love a fix

@MarkOSullivan94
Copy link
Collaborator

Related: #96

@Ossyyrr would you be able to fork @knyghtryda's fork, they have opened a PR which help with this #181

If it works for you, I'd appreciate you linking your fork here so I can try it out with the same icon you used.

Thanks!

@maheini
Copy link

maheini commented Feb 28, 2022

It's intended to act like this, at least on the android side. You can use this stencil to resize them: https://github.com/japalekhin/adaptive-icons-guide.

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

6 participants