簡體   English   中英

如何正確更改后顫應用程序啟動器圖標顏色

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM