简体   繁体   中英

Change app icon background color in flutter

Is it possible to change the app icon background color?

My icon image is png with transparent background. When I launch the app in android the app background color is white, while in ios the background color is black.

Here is the icon in android:

在此处输入图像描述

And here is the icon in ios:

在此处输入图像描述

Here is the code snippet for android in my AndroidManifest.xml

 <application
    android:label="R17 Group"
    android:icon="@mipmap/ic_launcher">
 </application>

Any solutions?

if you want a white background why not replace the transparent with white?

use flutter_launcher_icon package and customize your launcher icon yourself https://pub.dev/packages/flutter_launcher_icons

You can do it by opening your project on Android Studio.

  1. Right click on app
  2. Click new
  3. Image Asset
  4. Click on background layer and change the color
  5. Click on foreground layer and add your image to the path
  6. Click next

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM