1. Using package

After adding flutter_launcher_icons: ^0.8.1 to dependencies; pubspec.yaml will be as shown below:

dependencies:
flutter_launcher_icons: ^0.8.1

dev_dependencies:
flutter_test:
sdk: flutter

flutter_launcher_icons:
path: ../

flutter_icons:
image_path_android: "assets/icon/icon.png"
image_path_ios: "assets/icon/icon.png"
android: true
ios: true
adaptive_icon_background: "assets/icon/icon.png"
adaptive_icon_foreground: "assets/icon/icon.png"

2. Adding image to /assets/icon

"assets/icon/icon.png"

3. Install package

Run flutter pub get from the terminal.

4. Create icon

Run flutter pub run flutter_launcher_icons:main

Now, run your app to see app’s icon! 🎉

Thanks for reading!

--

--