flutter_launcher_icons icon indicating copy to clipboard operation
flutter_launcher_icons copied to clipboard

[FEATURE REQUEST] Transparent Background for Android Icons

Open KiraResari opened this issue 2 years ago • 1 comments

: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 avatar Jan 06 '24 17:01 KiraResari

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

KiraResari avatar Jan 06 '24 17:01 KiraResari