- Go to pub.dev to find the flutter_launcger_icons plug in.
2. Add the dependency on pubspec.yaml
flutter_launcher_icons: ^0.7.5 (version varies )
If the App
is in development stage you can add the dependency under dev_dependencies.
and run pub get or
packages get
3. Setup config file
Within pubspec.yaml
under dev_dependencies add the below flutter_icon config mentioning the path of
the icon image file. Make sure the command alignment is correct as it is shown in the image below.
flutter_icons:
android:
"launcher_icon"
ios: true
image_path:
"assets/icon/icon.png"
open the terminal in your IDE and run below command
flutter
pub run flutter_launcher_icons:main
Also you don't have to run the flutter pub get (you
have done it in the previous step )
You will see an output somewhat like
this:
Done !!
To Verify:
Android: - Go to res folder under
android:
ios: - Go to AppIcon folder under iOS:
Comments
Post a Comment