[英]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.我的图标图像是具有透明背景的png。 When I launch the app in android the app background color is white, while in ios the background color is black.
当我在 android 中启动应用程序时,应用程序背景颜色为白色,而在 ios 中,背景颜色为黑色。
Here is the icon in android:这是android中的图标:
And here is the icon in ios:这是 ios 中的图标:
Here is the code snippet for android in my AndroidManifest.xml这是我的 AndroidManifest.xml 中 android 的代码片段
<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使用 flutter_launcher_icon package 并自己自定义启动器图标https://pub.dev/packages/flutter_launcher_icons
You can do it by opening your project on Android Studio.您可以通过在 Android Studio 上打开您的项目来完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.