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.
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.