[英]Flutter add round app icon for android in VSCode
I added app-icons to my app for both iOS and Android. I watched this Tutorial and it is working so far.我为 iOS 和 Android 在我的应用程序中添加了应用程序图标。我看了这个教程,到目前为止它正在运行。 But the problem I have is that my Android Icon looks like this at the moment:
但我遇到的问题是我的 Android 图标现在看起来像这样:
But the icon should fill the circle.但是图标应该填满圆圈。 In the tutorial it is shown how you can do it in Android Studio, but I am using
VSCode
.在教程中,它展示了如何在 Android Studio 中执行此操作,但我使用的是
VSCode
。
I tried searching for it but couldn't find anything..我试着寻找它但找不到任何东西..
How can I get this done?我怎样才能完成这个?
By the way, I am not using flutter_launcher_icons
.顺便说一句,我没有使用
flutter_launcher_icons
。
It seems that you can't do it from vs code, it has to be done in android studio... I have searched for an answer as well as I was stuck with this and ended up doing it in android studio.看来你不能从 vs code 做到这一点,它必须在 android 工作室完成......我一直在寻找答案,但我一直坚持这个,最终在 android 工作室完成。 If someone has a solution please share.
如果有人有解决方案,请分享。
Flutter has its own default icon for every app in its Android and Ios folder so there are few steps that I would like to show to change the app icon. Flutter 在其 Android 和 Ios 文件夹中的每个应用程序都有自己的默认图标,因此我想展示几个步骤来更改应用程序图标。
Head over to https://appicon.co/ and generate your own icon using icon image (the zip file contains two main folders android and Assets.xcassets)前往https://appicon.co/并使用图标图像生成您自己的图标(zip 文件包含两个主要文件夹 android 和 Assets.xcassets)
For android: Go inside android\app\src\main\res in your flutter app and there paste the android folder content.对于 android:Go 在您的 flutter 应用程序中的 android\app\src\main\res 内,然后粘贴 ZC31B32A3641719CA8ZFCD150CE 文件夹内容。
For IOS: Go inside ios\Runner in your flutter app and there paste the Assets.xcassets content对于 IOS:Go 在您的 flutter 应用程序中的 ios\Runner 内,然后粘贴 Assets.xcassets 内容
Restart your emulator or rebuild your application重新启动您的模拟器或重建您的应用程序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.