fix(ui): 优化"我的"页面已过期和结算栏的显示格式
将绿积分和贡献值的数字改为跟在标签后面显示: - 已过期栏:绿积分:xxx,贡献值:xxx - 可结算栏:可结算 (绿积分):xxx - 已结算栏:已结算 (绿积分):xxx 🤖 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
1cc27731d9
commit
76108328c3
|
|
@ -2090,11 +2090,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
// 可结算 USDT
|
// 可结算 USDT
|
||||||
Column(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
'可结算 (绿积分)',
|
'可结算 (绿积分):',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
|
|
@ -2106,10 +2105,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
Text(
|
Text(
|
||||||
_formatNumber(_settleableUsdt),
|
_formatNumber(_settleableUsdt),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 14,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
height: 1.25,
|
height: 1.5,
|
||||||
color: Color(0xFF5D4037),
|
color: Color(0xFF5D4037),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -2157,15 +2156,29 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
Row(
|
||||||
'已结算 (绿积分)',
|
children: [
|
||||||
style: TextStyle(
|
const Text(
|
||||||
fontSize: 14,
|
'已结算 (绿积分):',
|
||||||
fontFamily: 'Inter',
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
fontSize: 14,
|
||||||
height: 1.5,
|
fontFamily: 'Inter',
|
||||||
color: Color(0xCC5D4037),
|
fontWeight: FontWeight.w500,
|
||||||
),
|
height: 1.5,
|
||||||
|
color: Color(0xCC5D4037),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
_formatNumber(_settledUsdt),
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
fontFamily: 'Inter',
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
height: 1.5,
|
||||||
|
color: Color(0xFF5D4037),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: _onSettlement,
|
onTap: _onSettlement,
|
||||||
|
|
@ -2190,17 +2203,6 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 4),
|
|
||||||
Text(
|
|
||||||
_formatNumber(_settledUsdt),
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 20,
|
|
||||||
fontFamily: 'Inter',
|
|
||||||
fontWeight: FontWeight.w700,
|
|
||||||
height: 1.25,
|
|
||||||
color: Color(0xFF5D4037),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
@ -2423,8 +2425,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
),
|
),
|
||||||
const SizedBox(height: 7),
|
const SizedBox(height: 7),
|
||||||
// 已过期 USDT
|
// 已过期 USDT
|
||||||
Column(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
'绿积分:',
|
'绿积分:',
|
||||||
|
|
@ -2439,19 +2440,18 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
Text(
|
Text(
|
||||||
_formatNumber(_expiredUsdt),
|
_formatNumber(_expiredUsdt),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 14,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
height: 1.25,
|
height: 1.5,
|
||||||
color: Color(0xFF5D4037),
|
color: Color(0xFF5D4037),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 11),
|
const SizedBox(height: 8),
|
||||||
// 已过期 算力
|
// 已过期 算力
|
||||||
Column(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
const Text(
|
||||||
'贡献值:',
|
'贡献值:',
|
||||||
|
|
@ -2466,10 +2466,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
Text(
|
Text(
|
||||||
_formatNumber(_expiredPower),
|
_formatNumber(_expiredPower),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 14,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
height: 1.25,
|
height: 1.5,
|
||||||
color: Color(0xFF5D4037),
|
color: Color(0xFF5D4037),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue