From 76108328c3dd9b4c4f25dfafe4b89c2171799e6f Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 17 Dec 2025 03:31:31 -0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BC=98=E5=8C=96"=E6=88=91?= =?UTF-8?q?=E7=9A=84"=E9=A1=B5=E9=9D=A2=E5=B7=B2=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E5=92=8C=E7=BB=93=E7=AE=97=E6=A0=8F=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将绿积分和贡献值的数字改为跟在标签后面显示: - 已过期栏:绿积分:xxx,贡献值:xxx - 可结算栏:可结算 (绿积分):xxx - 已结算栏:已结算 (绿积分):xxx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/profile_page.dart | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart index fccb9901..2d51b6f5 100644 --- a/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart +++ b/frontend/mobile-app/lib/features/profile/presentation/pages/profile_page.dart @@ -2090,11 +2090,10 @@ class _ProfilePageState extends ConsumerState { crossAxisAlignment: CrossAxisAlignment.start, children: [ // 可结算 USDT - Column( - crossAxisAlignment: CrossAxisAlignment.start, + Row( children: [ const Text( - '可结算 (绿积分)', + '可结算 (绿积分):', style: TextStyle( fontSize: 14, fontFamily: 'Inter', @@ -2106,10 +2105,10 @@ class _ProfilePageState extends ConsumerState { Text( _formatNumber(_settleableUsdt), style: const TextStyle( - fontSize: 20, + fontSize: 14, fontFamily: 'Inter', fontWeight: FontWeight.w700, - height: 1.25, + height: 1.5, color: Color(0xFF5D4037), ), ), @@ -2157,15 +2156,29 @@ class _ProfilePageState extends ConsumerState { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - const Text( - '已结算 (绿积分)', - style: TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w500, - height: 1.5, - color: Color(0xCC5D4037), - ), + Row( + children: [ + const Text( + '已结算 (绿积分):', + style: TextStyle( + fontSize: 14, + fontFamily: 'Inter', + fontWeight: FontWeight.w500, + height: 1.5, + color: Color(0xCC5D4037), + ), + ), + Text( + _formatNumber(_settledUsdt), + style: const TextStyle( + fontSize: 14, + fontFamily: 'Inter', + fontWeight: FontWeight.w700, + height: 1.5, + color: Color(0xFF5D4037), + ), + ), + ], ), GestureDetector( onTap: _onSettlement, @@ -2190,17 +2203,6 @@ class _ProfilePageState extends ConsumerState { ), ], ), - const SizedBox(height: 4), - Text( - _formatNumber(_settledUsdt), - style: const TextStyle( - fontSize: 20, - fontFamily: 'Inter', - fontWeight: FontWeight.w700, - height: 1.25, - color: Color(0xFF5D4037), - ), - ), ], ), ); @@ -2423,8 +2425,7 @@ class _ProfilePageState extends ConsumerState { ), const SizedBox(height: 7), // 已过期 USDT - Column( - crossAxisAlignment: CrossAxisAlignment.start, + Row( children: [ const Text( '绿积分:', @@ -2439,19 +2440,18 @@ class _ProfilePageState extends ConsumerState { Text( _formatNumber(_expiredUsdt), style: const TextStyle( - fontSize: 20, + fontSize: 14, fontFamily: 'Inter', fontWeight: FontWeight.w700, - height: 1.25, + height: 1.5, color: Color(0xFF5D4037), ), ), ], ), - const SizedBox(height: 11), + const SizedBox(height: 8), // 已过期 算力 - Column( - crossAxisAlignment: CrossAxisAlignment.start, + Row( children: [ const Text( '贡献值:', @@ -2466,10 +2466,10 @@ class _ProfilePageState extends ConsumerState { Text( _formatNumber(_expiredPower), style: const TextStyle( - fontSize: 20, + fontSize: 14, fontFamily: 'Inter', fontWeight: FontWeight.w700, - height: 1.25, + height: 1.5, color: Color(0xFF5D4037), ), ),