fluttercommunity / flutter_launcher_icons

Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94
https://pub.dev/packages/flutter_launcher_icons
MIT License
2.01k stars 406 forks source link

[White space aroound image] #467

Closed Sg323 closed 1 month ago

Sg323 commented 1 year ago

:information_source: Info

flutter_launcher_icons: ^0.12.0

:speech_balloon: Description

Android 12 miui 13 image not fill lcon the icon has white space all around it

:scroll: Pubspec.yaml

dev_dependencies: flutter_test: sdk: flutter flutter_launcher_icons: ^0.12.0

flutter_icons: android: "launcher_icon" image_path: "assets/images/logo.png" adaptive_icon_background: "#000000" background_color: "#000000" min_sdk_android: 21

We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect

WasaLordy commented 1 year ago

Hi Sg323, I faced the same problem now. This video helped me to get rid of this space around the real icon: https://www.youtube.com/watch?v=eMHbgIgJyUQ I used this tool to generate my new icon: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html (Edit: Successor tool: https://icon.kitchen/ ) "Foreground" --> "Image" --> select from device --> adjust "Padding" --> click "Download Zip" It seems to be necessary to create an adaptive_icon_foreground...

I hope I could help.

erperejildo commented 10 months ago

Hi Sg323, I faced the same problem now. This video helped me to get rid of this space around the real icon: https://www.youtube.com/watch?v=eMHbgIgJyUQ I used this tool to generate my new icon: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html "Foreground" --> "Image" --> select from device --> adjust "Padding" --> click "Download Zip" It seems to be necessary to create an adaptive_icon_foreground...

I hope I could help.

so what's this package for then?

MarkOSullivan94 commented 1 month ago

The new inset configuration should help with this