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.02k stars 405 forks source link

[FEATURE REQUEST] Transparent Background for Android Icons #535

Open KiraResari opened 10 months ago

KiraResari commented 10 months ago

:speech_balloon: Description

On my Android phone, I have a number of apps that have cool icons with transparent backgrounds (such as Paint, Notepad, Music, Camera...). I have been trying to create icons with transparent backgrounds for a while now, but with now success. Obviously, it is technically possible, but it does not seem to be possible with flutter_launcher_icons (or if it is, there's no obvious way to do it, because I tried a whole bunch of things and none worked). I also tried manually editing the android resource files and configurations, but with no success. So, since this is apparently possible but complicated, it would be great to have the functionality in flutter_launcher_icons to automatically do whatever it takes to get it to work.

One thing I tried and which did not work was adaptive_icon_background: "#00000000", so I think maybe something like adaptive_icon_background: "transparent" would be a good way to configure this.

:question: Platform

Android

KiraResari commented 10 months ago

I now continued to mess around a bit with the settings, and got a halfway acceptable result where the icon on my home screen is transparent, though I don't know quite how all the things play together.

What I did do was revert a lot of the changes that flutter_launcher_icons did. Among other things, this entry in the AndroidManifest.xml:

   <application
        android:label="Ceal Chronicler F"
        android:name="${applicationName}"
        android:icon="@mipmap/ic_launcher">

I am not quite happy with the size of the icon on the splash screen now, but I am extremely happy with how the icon itself looks on my home screen.

I just committed that version to my repository. Feel free to experiment around with it. https://github.com/KiraResari/ceal-chronicler-f