fix(ui): 对齐所有页面样式到 Pencil 设计规范
transfer_page.dart: - 金色主题统一(Light: secondary #F59E0B, Dark: primary #D4AF37) - 修复交换按钮和确认按钮颜色 home_page.dart: - Asset Card 圆角 14px - 总资产字号 28px (displayLarge) - "预估总资产"字号 13px (bodyLarge) - 盈亏标签/数值字重调整 quick_actions_row.dart: - padding 统一为 16px welfare_center_page.dart: - _statusBadge padding [6, 14] trade_form_card.dart / price_card.dart: - 样式细节对齐
This commit is contained in:
@@ -525,6 +525,7 @@ class _AssetCardState extends State<_AssetCard> {
|
||||
|
||||
return GlassPanel(
|
||||
padding: EdgeInsets.all(20),
|
||||
borderRadius: BorderRadius.circular(AppRadius.lg), // 14px
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -534,7 +535,7 @@ class _AssetCardState extends State<_AssetCard> {
|
||||
children: [
|
||||
Text(
|
||||
'预估总资产(USDT)',
|
||||
style: AppTextStyles.bodyMedium(context),
|
||||
style: AppTextStyles.bodyLarge(context), // 13px
|
||||
),
|
||||
GestureDetector(
|
||||
onTap: widget.onDeposit,
|
||||
@@ -570,7 +571,7 @@ class _AssetCardState extends State<_AssetCard> {
|
||||
// 总资产金额
|
||||
Text(
|
||||
displayAsset,
|
||||
style: AppTextStyles.displaySmall(context).copyWith(
|
||||
style: AppTextStyles.displayLarge(context).copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
@@ -1246,7 +1247,7 @@ class _ProfitStatCard extends StatelessWidget {
|
||||
Text(
|
||||
label,
|
||||
style: AppTextStyles.bodySmall(context).copyWith(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontWeight: FontWeight.w400, // w500 → w400
|
||||
color: color.withValues(alpha: 0.8),
|
||||
),
|
||||
),
|
||||
@@ -1258,7 +1259,7 @@ class _ProfitStatCard extends StatelessWidget {
|
||||
? '${isProfit ? '+' : ''}${value!.toStringAsFixed(2)}'
|
||||
: '--',
|
||||
style: AppTextStyles.numberMedium(context).copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontWeight: FontWeight.w600, // bold → w600
|
||||
color: color,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -34,7 +34,7 @@ class QuickActionsRow extends StatelessWidget {
|
||||
: const Color(0xFFE2E8F0);
|
||||
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(vertical: AppSpacing.md, horizontal: AppSpacing.sm),
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
color: containerBg,
|
||||
border: Border.all(
|
||||
|
||||
Reference in New Issue
Block a user