From 3c641425400fef0cc8eec7e4576d12380277e22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=88=E5=93=88=E5=93=88?= Date: Thu, 25 Aug 2022 16:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=84=89=E9=8C=A2=E5=8C=85=EF=BC=8CUI?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mine/mine_wallet_page.dart | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/mine/mine_wallet_page.dart b/lib/mine/mine_wallet_page.dart index 04226422..34ec633c 100644 --- a/lib/mine/mine_wallet_page.dart +++ b/lib/mine/mine_wallet_page.dart @@ -311,17 +311,18 @@ class _MineWalletPage extends State { Row( children: [ Expanded( - flex: 7, - child: Text( - S.of(context).pingtaizongyue( - userBill.balance, - userBill.surplusActivityMoney, - userBill.surplusGreenMoney), - style: TextStyle( - color: Color(0xFF727272), - fontSize: 10.sp, - ), - )), + flex: 7, + child: Text( + S.of(context).pingtaizongyue( + userBill.balance, + userBill.surplusActivityMoney, + userBill.surplusGreenMoney), + style: TextStyle( + color: Color(0xFF727272), + fontSize: 10.sp, + ), + ), + ), if (calculateBalance(userBill, 2).isNotEmpty) Expanded( flex: 4, @@ -370,7 +371,9 @@ class _MineWalletPage extends State { } List calculateBalance(UserBill userBill, int index) { - double tbalance = double.tryParse(userBill.number ?? "0");/// 总余额 + double tbalance = double.tryParse(userBill.number ?? "0"); + + /// 总余额 String surplusGreenMoney = userBill.surplusGreenMoney; String surplusActivityMoney = userBill.surplusActivityMoney; double surplusMoney = double.tryParse(surplusGreenMoney ?? "0");