简体   繁体   English

软件包 flutter_launcher_icon 不删除自适应图标

[英]Package flutter_launcher_icon don't remove adaptive icons

I'm trying to setup my Flutter project and I have a problem with the flutter_launcher_icon package.我正在尝试设置我的 Flutter 项目,但 flutter_launcher_icon 包有问题。 When I set the background and foreground of the adaptive icon, the app icon works fine and everything is ok.当我设置自适应图标的背景和前景时,应用程序图标工作正常,一切正常。 However, once I delete them to go back to a classic icon, as the adaptive icon files have already been created, the package does not delete them, and I end up with the same icon... I wanted to know if there was a way to force the package to delete the files it had created, or with a command, delete all the icon-related files in the res folder.但是,一旦我删除它们回到经典图标,因为自适应图标文件已经创建,包并没有删除它们,我最终得到相同的图标......我想知道是否有一个强制包删除它创建的文件的方法,或者使用命令删除 res 文件夹中所有与图标相关的文件。

Just go to android > app > src > main > res and delete all the drawable-dpi folders (except for the plain drawable folder), and the mipmap-any folder.只需转到 android > app > src > main > res 并删除所有 drawable-dpi 文件夹(除了普通的 drawable 文件夹)和 mipmap-any 文件夹。 Those folders contain the files for the adaptive icon, and without them Android just uses the regular icon.这些文件夹包含自适应图标的文件,没有它们,Android 只会使用常规图标。

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

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