Browse Source

回鄉錢包,UI修改

dart3_last
哈哈哈 2 years ago
parent
commit
3c64142540
  1. 27
      lib/mine/mine_wallet_page.dart

27
lib/mine/mine_wallet_page.dart

@ -311,17 +311,18 @@ class _MineWalletPage extends State<MineWalletPage> {
Row( Row(
children: [ children: [
Expanded( Expanded(
flex: 7, flex: 7,
child: Text( child: Text(
S.of(context).pingtaizongyue( S.of(context).pingtaizongyue(
userBill.balance, userBill.balance,
userBill.surplusActivityMoney, userBill.surplusActivityMoney,
userBill.surplusGreenMoney), userBill.surplusGreenMoney),
style: TextStyle( style: TextStyle(
color: Color(0xFF727272), color: Color(0xFF727272),
fontSize: 10.sp, fontSize: 10.sp,
), ),
)), ),
),
if (calculateBalance(userBill, 2).isNotEmpty) if (calculateBalance(userBill, 2).isNotEmpty)
Expanded( Expanded(
flex: 4, flex: 4,
@ -370,7 +371,9 @@ class _MineWalletPage extends State<MineWalletPage> {
} }
List<String> calculateBalance(UserBill userBill, int index) { List<String> calculateBalance(UserBill userBill, int index) {
double tbalance = double.tryParse(userBill.number ?? "0");/// double tbalance = double.tryParse(userBill.number ?? "0");
///
String surplusGreenMoney = userBill.surplusGreenMoney; String surplusGreenMoney = userBill.surplusGreenMoney;
String surplusActivityMoney = userBill.surplusActivityMoney; String surplusActivityMoney = userBill.surplusActivityMoney;
double surplusMoney = double.tryParse(surplusGreenMoney ?? "0"); double surplusMoney = double.tryParse(surplusGreenMoney ?? "0");

Loading…
Cancel
Save