简体   繁体   English

向上滑动以显示打开的应用程序时,默认 Flutter 图标显示在 iOS 中

[英]Default Flutter icon shows in iOS when swiping up to show opened apps

I've replaced all my icon assets in my XCode runner project, both AppIcon, and LaunchImage.我已经替换了我的 XCode 跑步者项目中的所有图标资产,包括 AppIcon 和 LaunchImage。 However, the default flutter icon still appears when I swipe up in iOS to show the opened apps.但是,当我在 iOS 中向上滑动以显示打开的应用程序时,默认的 flutter 图标仍然出现。 Is there another place that I need to look for where the default icon is being used?我还需要寻找使用默认图标的其他地方吗? 在此处输入图像描述

在此处输入图像描述

You should use flutter_launcher_icons to properly format your app icon and make it propagate everywhere.您应该使用flutter_launcher_icons正确格式化您的应用程序图标并使其传播到任何地方。

Copy paste your icon here: assets/icon/icon.png在此处复制粘贴您的图标: assets/icon/icon.png

Then in pubspec.yaml :然后在pubspec.yaml中:

dev_dependencies: 
  flutter_launcher_icons: "^0.7.3"

flutter_icons:
  android: "launcher_icon" 
  ios: true
  image_path: "assets/icon/icon.png"

Then in command line:然后在命令行中:

flutter pub get
flutter pub run flutter_launcher_icons:main

And you're good to go你对 go 很好

I had the same problem.我有同样的问题。 I was running it in a simulator.我在模拟器中运行它。

  1. I erased the app我删除了应用程序
  2. restarted the simulator重新启动模拟器
  3. Ran the program again and it was fixed.再次运行程序,它被修复了。

flutter_launcher_icons plugin in combination of phone restart (cause icon was cached in phone) was fix for me.结合手机重启的flutter_launcher_icons插件(因为图标被缓存在手机中)对我来说是修复的。

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

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