为什么我的颤抖的应用启动器图标成一个圆圈?我可以用方形图标代替它吗? [英] Why my flutter app launcher icon in a circle? Can I use a square icon to replace this one?

查看:93
本文介绍了为什么我的颤抖的应用启动器图标成一个圆圈?我可以用方形图标代替它吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下网站为Flutter应用程序生成多个启动器图标.

I was using the following website to generate several launcher icons for my flutter app.

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

但是在我替换了原始的flutter图标(文件路径:myapp/android/app/src/main/res)并运行我的应用程序后,我的图标在带圆圈的图标中. (检查我附加的图像)

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. ( check the image I attached )

我在应用启动器中的图标

我的Android虚拟设备是Nexus 5X API 28.

My Android Virtual Device is 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.

这篇关于为什么我的颤抖的应用启动器图标成一个圆圈?我可以用方形图标代替它吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆