APP图标更新

This commit is contained in:
2026-09-22 14:50:04 +08:00
parent 67d4dd5b7c
commit a6e02ccbf3
36 changed files with 190 additions and 148 deletions
+26
View File
@@ -45,6 +45,10 @@ dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
# 图标生成:配好下面的 flutter_launcher_icons 段后执行
# python tools/make_app_icon.py # 先从素材生成 assets/icon/app_icon*.png
# dart run flutter_launcher_icons # 再铺开成 Android/iOS/Web 各尺寸
flutter_launcher_icons: ^0.14.0
flutter:
@@ -83,3 +87,25 @@ flutter:
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package
# ---------------------------------------------------------------------------
# App 图标配置(执行 `dart run flutter_launcher_icons` 生效)
# 源图由 tools/make_app_icon.py 生成,改图标请先替换素材再跑这两个命令
# ---------------------------------------------------------------------------
flutter_launcher_icons:
android: true
ios: true
image_path: "assets/icon/app_icon.png"
# Android 8+ 自适应图标:背景层用纯色,前景层是透明底的熊头
adaptive_icon_background: "#FFF6EC"
adaptive_icon_foreground: "assets/icon/app_icon_fg.png"
# iOS 图标不允许带透明通道,否则上架报 ITMS-90717
remove_alpha_ios: true
web:
generate: true
image_path: "assets/icon/app_icon.png"
background_color: "#FFF6EC"
theme_color: "#C8956E"