You will now add the flutter_launcher_icons package to your app and use it to add icons to your iOS and Android apps. Follow these steps:
-
Create a new directory in the root of your project, called icons.
-
Create or retrieve an icon for your app if you haven't already added one, and place it in the icons directory.
You can get an icon for free at several websites, including https://remixicon.com/. If you use this specific service, make sure to download your icon at the maximum available resolution.
- Add the flutter_launcher_icons package to the dev_dependencies node in your pubspec.yaml file:
flutter_launcher_icons: ^0.8.1
- At the same level as dependencies and dev_dependencies, add the flutter_icons node, as shown:
flutter_icons:
android: true
ios: true
image_path: "icons/scale.png"
adaptive_icon_background: "#DDDDDD"
adaptive_icon_foreground: "icons/scale.png"
- From a Terminal window in your project folder...