fix(ui): 对齐首页样式到 Pencil 设计规范
- Asset Card: padding 20px (was 24px) - 充值按钮: cornerRadius 6px, padding [5,10], icon 13px, text 12px - Quick Actions: 边框颜色 Light #E2E8F0, Dark #1E293B - Quick Action Icons: 背景色 Light #F3F4F6, Dark #1E293B - Quick Action Icons: 图标色 Light #4B5563 - cornerRadius: -lg (14px) for cards
This commit is contained in:
@@ -524,7 +524,7 @@ class _AssetCardState extends State<_AssetCard> {
|
||||
final displayAsset = _formatAsset(totalAsset);
|
||||
|
||||
return GlassPanel(
|
||||
padding: EdgeInsets.all(AppSpacing.lg),
|
||||
padding: EdgeInsets.all(20),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -540,22 +540,23 @@ class _AssetCardState extends State<_AssetCard> {
|
||||
onTap: widget.onDeposit,
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: AppSpacing.md,
|
||||
vertical: AppSpacing.xs + 2,
|
||||
horizontal: 10,
|
||||
vertical: 5,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: context.colors.primary,
|
||||
borderRadius: BorderRadius.circular(AppRadius.full),
|
||||
borderRadius: BorderRadius.circular(AppRadius.sm),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(Icons.add, size: 14, color: context.colors.onPrimary),
|
||||
SizedBox(width: AppSpacing.xs),
|
||||
Icon(Icons.add, size: 13, color: context.colors.onPrimary),
|
||||
SizedBox(width: 4),
|
||||
Text(
|
||||
'充值',
|
||||
style: AppTextStyles.labelLarge(context).copyWith(
|
||||
color: context.colors.onPrimary,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user