[英]how to change the back flutter app launcher icon color properly
您還應該使用圖像插件來解決您的問題,看起來像
dev_dependencies:
flutter_launcher_icons: "^0.7.0"
image: "^2.1.0"
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon/icon.png"
然后你可以運行命令:
flutter packages get
flutter packages pub run flutter_launcher_icons:main
對於那些仍然看到這個問題的人,我發現如果你想使用adaptive_icon_background,你還必須使用adaptive_icon_foreground。
flutter_icons:
android: true
ios: true
remove_alpha_ios: true
image_path: "assets/logo.png"
adaptive_icon_foreground: "assets/logo.png"
adaptive_icon_background: "assets/logobgcolor.png"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.