flutter 換 app icon 圖示

在terminal輸入指令
flutter pub add flutter_launcher_icons

在pubspec.yaml檔案中加入

flutter_icons:
android: true
ios: true
image_path: “images/logo.png”
remove_alpha_ios: true

然後再回到terminal輸入指令

flutter pub get
flutter pub run flutter_launcher_icons:main

再把模擬器關掉, IDE 重開(我使用 VS Code ),再將模擬器開起來,就能看到剛剛設定完的icon

--

--