From ee4cac59c7a3b585ccd132eed00d52770ad41049 Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 24 Dec 2025 03:41:23 -0800 Subject: [PATCH] =?UTF-8?q?fix(profile):=20=E4=BF=AE=E5=A4=8D=E5=B5=8C?= =?UTF-8?q?=E5=A5=97=20Row=20=E6=97=A0=E7=95=8C=E7=BA=A6=E6=9D=9F=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E7=99=BD=E5=B1=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 _buildSettlementSection 的"已结算"区域,内层 Row 中使用了 Flexible, 但内层 Row 没有宽度约束,导致 RenderFlex unbounded width constraints 错误。 通过在内层 Row 外添加 Expanded 包裹来提供宽度约束。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../presentation/pages/profile_page.dart | 52 ++++++++++--------- 1 file changed, 27 insertions(+), 25 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 14ba1e20..a3b5261e 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 @@ -2475,35 +2475,37 @@ class _ProfilePageState extends ConsumerState { Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Row( - children: [ - const Text( - '已结算 (绿积分):', - style: TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w500, - height: 1.5, - color: Color(0xCC5D4037), + Expanded( + child: Row( + children: [ + const Text( + '已结算 (绿积分):', + style: TextStyle( + fontSize: 14, + fontFamily: 'Inter', + fontWeight: FontWeight.w500, + height: 1.5, + color: Color(0xCC5D4037), + ), ), - ), - Flexible( - child: FittedBox( - fit: BoxFit.scaleDown, - alignment: Alignment.centerLeft, - child: Text( - _formatNumber(_settledUsdt), - style: const TextStyle( - fontSize: 14, - fontFamily: 'Inter', - fontWeight: FontWeight.w700, - height: 1.5, - color: Color(0xFF5D4037), + Flexible( + child: FittedBox( + fit: BoxFit.scaleDown, + alignment: Alignment.centerLeft, + child: Text( + _formatNumber(_settledUsdt), + style: const TextStyle( + fontSize: 14, + fontFamily: 'Inter', + fontWeight: FontWeight.w700, + height: 1.5, + color: Color(0xFF5D4037), + ), ), ), ), - ), - ], + ], + ), ), GestureDetector( onTap: _onSettlement,