This commit is contained in:
sion
2026-04-07 01:05:05 +08:00
parent edad10ff06
commit 5ca1274607
83 changed files with 1561 additions and 1241 deletions

View File

@@ -4,10 +4,10 @@ import '../../../../core/theme/app_theme.dart';
import '../../../../core/theme/app_theme_extension.dart';
import '../../../../data/models/coin.dart';
/// 格卡片
/// 格卡片
///
/// 显示当前币种价格和 24h 跌幅。
/// 局:大号价格(32px bold) + 跌幅徽章(角sm涨绿背景) + "24h 化" 副标题
/// 顯示當前幣種價格和 24h 跌幅。
/// 局:大號價格(32px bold) + 跌幅徽章(角sm漲綠背景) + "24h 化" 副標題
class PriceCard extends StatelessWidget {
final Coin coin;
const PriceCard({super.key, required this.coin});
@@ -34,7 +34,7 @@ class PriceCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// 格行:大号价格 + 跌幅徽章
// 格行:大號價格 + 跌幅徽章
Row(
children: [
Text(
@@ -42,10 +42,10 @@ class PriceCard extends StatelessWidget {
style: AppTextStyles.numberLarge(context).copyWith(fontSize: 32),
),
const SizedBox(width: AppSpacing.sm),
// 跌幅徽章 - 角sm涨绿背景
// 跌幅徽章 - 角sm漲綠背景
Container(
padding: const EdgeInsets.symmetric(
horizontal: 8, vertical: 4), // 整 padding
horizontal: 8, vertical: 4), // 調整 padding
decoration: BoxDecoration(
color: changeBgColor,
borderRadius: BorderRadius.circular(AppRadius.sm),
@@ -61,9 +61,9 @@ class PriceCard extends StatelessWidget {
],
),
const SizedBox(height: AppSpacing.sm),
// 副标题
// 副標題
Text(
'24h ',
'24h ',
style: AppTextStyles.bodySmall(context),
),
],