简体   繁体   English

Flutter 在 VSCode 中为 android 添加圆形应用程序图标

[英]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.

相关问题 圆形应用程序图标未在Android Oreo上显示 - Round app icon not displaying on Android Oreo 带有图标的 Android 圆形按钮 - Android round button with icon 如何在flutter应用程序中的PopupMenuItem的开头添加一个图标 - How to add an Icon at the beginning of PopupMenuItem in flutter app 当应用程序最小化时 Flutter Android 应用程序图标 - Flutter Android application icon when app is minimized 应用程式图示无法显示在7.0以上的android作业系统中。 它显示默认的圆形图标 - App Icon not display in above 7.0 android os. it display round default launcer icon 在 VScode 和 android 工作室的 Flutter 中编译我的应用程序时出错 - Error while compling my app in Flutter in VScode and android studio 在Android中是否可以将应用程序图标添加到状态栏中? - Is it possible in android to add app icon to status bar? 如何为Cordova Android项目添加应用程序图标 - How to add app icon for cordova android project 如何在应用栏中添加资产图像作为 Flutter 应用程序中的操作图标? - How to add asset image in app bar as an action icon in Flutter application? 如何使我的listview图像变圆并在android json中添加固定图标? - how to make my listview image round and add the fixed icon in android json?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM