fix(profile): 修复嵌套 Row 无界约束导致的白屏问题
在 _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 <noreply@anthropic.com>
This commit is contained in:
parent
1cd4b352a4
commit
ee4cac59c7
|
|
@ -2475,35 +2475,37 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Expanded(
|
||||||
children: [
|
child: Row(
|
||||||
const Text(
|
children: [
|
||||||
'已结算 (绿积分):',
|
const Text(
|
||||||
style: TextStyle(
|
'已结算 (绿积分):',
|
||||||
fontSize: 14,
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontSize: 14,
|
||||||
fontWeight: FontWeight.w500,
|
fontFamily: 'Inter',
|
||||||
height: 1.5,
|
fontWeight: FontWeight.w500,
|
||||||
color: Color(0xCC5D4037),
|
height: 1.5,
|
||||||
|
color: Color(0xCC5D4037),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
Flexible(
|
||||||
Flexible(
|
child: FittedBox(
|
||||||
child: FittedBox(
|
fit: BoxFit.scaleDown,
|
||||||
fit: BoxFit.scaleDown,
|
alignment: Alignment.centerLeft,
|
||||||
alignment: Alignment.centerLeft,
|
child: Text(
|
||||||
child: Text(
|
_formatNumber(_settledUsdt),
|
||||||
_formatNumber(_settledUsdt),
|
style: const TextStyle(
|
||||||
style: const TextStyle(
|
fontSize: 14,
|
||||||
fontSize: 14,
|
fontFamily: 'Inter',
|
||||||
fontFamily: 'Inter',
|
fontWeight: FontWeight.w700,
|
||||||
fontWeight: FontWeight.w700,
|
height: 1.5,
|
||||||
height: 1.5,
|
color: Color(0xFF5D4037),
|
||||||
color: Color(0xFF5D4037),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: _onSettlement,
|
onTap: _onSettlement,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue