Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

icons

flutter

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? enter image description here

enter image description here

like image 256
Jeff Andrews Avatar asked Nov 06 '19 13:11

Jeff Andrews


3 Answers

flutter_launcher_icons plugin in combination of phone restart (cause icon was cached in phone) was fix for me.

like image 51
Andris Avatar answered Oct 12 '22 09:10

Andris


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.
like image 22
Uresti Avatar answered Oct 12 '22 11:10

Uresti


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

like image 44
Baptiste Arnaud Avatar answered Oct 12 '22 09:10

Baptiste Arnaud