flutter_launcher_icons is a command-line tool that allows you to create the launcher icon for your app and is compatible with iOS, Android, and even web and desktop apps.
In order to use flutter_launcher_icons, you need to add its dependency in the dev_dependencies node in your pubspec.yaml file. This is where you put the dependencies that will not be exported to the release app.
The configuration of this package happens in the pubspec.yaml file with the following instructions:
flutter_icons:
android: true
ios: true
image_path: "icons/scale.png"
adaptive_icon_background: "#DDDDDD"
adaptive_icon_foreground: "icons/scale.png"
Here you specify the following:
- The target platforms for the icons (in this case android and ios)
- The path of the source image for the icon with the image_path property
- The color used to fill the background of the adaptive icon (Android only) with the adaptive_icon_background...