Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94
Version: e.g. v0.7.5
flutter_launcher_icons: ^0.13.1
:speech_balloon: Description
I changed the icon file and ran the commands below:
flutter pub get
flutter pub run flutter_launcher_icons
After I ran the app flutter run -d MacOS but the old icon is still in use. I even renamed the icon file to old-icon and the old icon is still showing. However, in the terminal I got the following error:
══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following assertion was thrown resolving an image codec:
Unable to load asset: "assets/images/icon.png".
Exception: Asset not found
When the exception was thrown, this was the stack:
#0 PlatformAssetBundle.loadBuffer (package:flutter/src/services/asset_bundle.dart:365:7)
<asynchronous suspension>
#1 AssetBundleImageProvider._loadAsync (package:flutter/src/painting/image_provider.dart:754:16)
<asynchronous suspension>
#2 MultiFrameImageStreamCompleter._handleCodecReady (package:flutter/src/painting/image_stream.dart:1005:3)
<asynchronous suspension>
Image provider: AssetImage(bundle: null, name: "assets/images/icon.png")
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#05844(), name: "assets/images/icon.png",
scale: 1.0)
════════════════════════════════════════════════════════════════════════════════════════════════════
:information_source: Info
Version:
e.g. v0.7.5
flutter_launcher_icons: ^0.13.1:speech_balloon: Description
I changed the icon file and ran the commands below:
After I ran the app
flutter run -d MacOS
but the old icon is still in use. I even renamed the icon file toold-icon
and the old icon is still showing. However, in the terminal I got the following error::scroll: Pubspec.yaml
We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect