简体   繁体   English

为什么我的颤抖的应用启动器图标成一个圆圈? 我可以用方形图标代替它吗?

[英]Why my flutter app launcher icon in a circle? Can I use a square icon to replace this one?

I was using the following website to generate several launcher icons for my flutter app. 我正在使用以下网站为Flutter应用程序生成几个启动器图标。

https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html

But after I replace the original flutter icons ( file path: myapp/android/app/src/main/res ) and run my app, my icon is in a circled icon. 但是,当我替换了原始的flutter图标(文件路径:myapp / android / app / src / main / res)并运行我的应用程序后,我的图标在带圆圈的图标中。 ( check the image I attached ) (检查我附上的图片)

My icon in app launcher 我在应用启动器中的图标

My Android Virtual Device is Nexus 5X API 28. 我的Android虚拟设备是Nexus 5X API 28。

So can anyone tell me what was wrong? 谁能告诉我这是怎么回事? And Can I use a square icon to replace this one? 我可以使用正方形图标代替它吗?

The launcher that comes on the emulator forces all icons to be round. 模拟器上的启动器强制所有图标变为圆形。 If the icon isn't already round, it will add a round border around it, like you see in that screenshot. 如果该图标尚未圆形,它将在其周围添加一个圆形边框,如该屏幕截图所示。

This isn't something you can change. 这不是您可以更改的东西。 If you want your icon to be square, use a different launcher. 如果希望图标为正方形,请使用其他启动器。 It's ultimately up to the user how their icons display. 最终取决于用户如何显示其图标。

You may want to consider implementing adaptive icons , so if a user does use circle or squircle icons and their icon pack/launcher forces all icons to be round, it at least won't look terrible. 您可能要考虑实现自适应图标 ,因此,如果用户确实使用了圆形或方形图标,并且他们的图标包/发射器将所有图标都弄成圆形,至少看起来不会很糟糕。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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