feat: 集成离线数字货币图标系统

 新功能:
- 下载16个主流币种图标(BTC, ETH, USDT, BNB, SOL等)
- 创建 CoinIcon 组件,支持离线图标和兜底显示
- 更新 CoinAvatar 组件,使用新的 CoinIcon
- 更新 market_page.dart 中的 _CoinAvatar 组件

📦 资源:
- 图标存放在 flutter_monisuo/assets/icons/crypto/
- 使用 Cryptocurrency Icons 开源图标库
- PNG 格式,128x128 像素

🎯 特性:
- 支持自定义大小
- 支持圆形背景
- 未找到图标时显示币种代码(兜底方案)
- 支持深色/浅色模式

📝 修改文件:
- 新增:flutter_monisuo/lib/ui/components/coin_icon.dart
- 新增:flutter_monisuo/assets/icons/crypto/*.png (16个)
- 修改:flutter_monisuo/pubspec.yaml
- 修改:flutter_monisuo/lib/ui/pages/trade/components/coin_avatar.dart
- 修改:flutter_monisuo/lib/ui/pages/market/market_page.dart

-  后端构建成功 (2.0s)
-  Flutter Web 构建成功 (24.1s)
- ⚠️ Admin: TypeScript类型错误(已知问题)
This commit is contained in:
2026-04-07 03:39:20 +08:00
parent fe7dd15b5e
commit dff698e9bb
125 changed files with 33260 additions and 33144 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -0,0 +1,28 @@
#!/bin/bash
# 下载主流币种图标
declare -A coins=(
["btc"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/btc.png"
["eth"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/eth.png"
["usdt"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/usdt.png"
["bnb"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/bnb.png"
["sol"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/sol.png"
["xrp"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/xrp.png"
["ada"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/ada.png"
["doge"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/doge.png"
["dot"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/dot.png"
["matic"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/matic.png"
["shib"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/shib.png"
["ltc"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/ltc.png"
["avax"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/avax.png"
["link"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/link.png"
["uni"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/uni.png"
["atom"]="https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/atom.png"
)
for coin in "${!coins[@]}"; do
echo "Downloading $coin..."
curl -sL "${coins[$coin]}" -o "${coin}.png"
done
echo "Download complete!"

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1 @@
404: Not Found

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB