• So far the official document gives two ways:Official community command line plug-in & Manual replacement
  • This article shares the official recommended community command-line plug-in package: flutter_launcher_icons

    • Address: https://pub.flutter-io.cn/pac…
  • Add dependency to configuration file: pubspec.yaml

    Dev_dependencies: flutter_launcher_icons: "^0.8.0" flutter_icons: Android: "launcher_icon" iOS: true image_path: "Path to your own new icon"
  • If your code editor isVSCodeIf you save the configuration, it will automatically unpack it. Otherwise, you may need to manually run the command:flutter pub get
  • Execute the command to generate a new icon:flutter pub run flutter_launcher_icons:main
  • End result: