Home > Back-end >  How to change app icon in flutter using VS code?
How to change app icon in flutter using VS code?

Time:12-19

enter image description hereHow to change the app icon in flutter using VS code. I am trying it again and again but it's not working see different methods online but no positive outcome

CodePudding user response:

have you tried this method? with the help of flutter plugin you may change flutter icon package. flutter_launcher_icons: ^0.9.2 First step dev_dependencies: flutter_launcher_icons: "^0.9.2"

flutter_icons: android: "launcher_icon" ios: true image_path: "assets/icon/icon.png"

second step flutter pub get

CodePudding user response:

You can make use of the flutter_launcher_icons: ^0.9.2 package

Create new folder named assets and a subfolder inside that named icon then make changes in your pubspec.yaml file like following:

dev_dependencies:
  flutter_launcher_icons: "^0.9.2"

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon/icon.png"  

Here the icon image should be icon.png and it will be stored in the path : assets/icon

now in terminal run

flutter pub get

for further info check this as reference. And this video might be helpful.

  • Related