简体   繁体   中英

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. However, the default flutter icon still appears when I swipe up in iOS to show the opened apps. 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.

Copy paste your icon here: assets/icon/icon.png

Then in 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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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