From c08c3f4c7c61933e7b2157ffccc23e02e0f9d805 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sat, 5 Oct 2024 11:39:09 +0800 Subject: [PATCH] mod --- lib/pages/mine/view.dart | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/pages/mine/view.dart b/lib/pages/mine/view.dart index 4fcfdcf4..5bf7a536 100644 --- a/lib/pages/mine/view.dart +++ b/lib/pages/mine/view.dart @@ -177,12 +177,18 @@ class _MinePageState extends State ), const SizedBox(height: 2), ], - Text( - '硬币: ${userInfo.money ?? '-'}', - style: TextStyle( - color: Theme.of(context).colorScheme.outline, - ), - ), + Text.rich( + TextSpan(children: [ + TextSpan( + text: '硬币: ', + style: TextStyle( + color: Theme.of(context).colorScheme.outline)), + TextSpan( + text: (userInfo.money ?? '-').toString(), + style: TextStyle( + color: Theme.of(context).colorScheme.primary)), + ]), + ) ], ), const Spacer(),