flutter_launcher_icons icon indicating copy to clipboard operation
flutter_launcher_icons copied to clipboard

In android the icon expands

Open Ossyyrr opened this issue 4 years ago • 5 comments

:information_source: Info

Version: 2.0.5

:speech_balloon: 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

:scroll: 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 ...

Ossyyrr avatar May 17 '21 13:05 Ossyyrr

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

aklehm avatar Jun 11 '21 10:06 aklehm

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.

tfreund avatar Jun 11 '21 11:06 tfreund

Same issue - would love a fix

carman247 avatar Jun 24 '21 11:06 carman247

Related: https://github.com/fluttercommunity/flutter_launcher_icons/issues/96

@Ossyyrr would you be able to fork @knyghtryda's fork, they have opened a PR which help with this https://github.com/fluttercommunity/flutter_launcher_icons/pull/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!

MarkOSullivan94 avatar Jul 25 '21 21:07 MarkOSullivan94

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.

maheini avatar Feb 28 '22 18:02 maheini