style(mining-app): hide accountSequence and rename phone to ID on profile page
- Remove accountSequence (ID: xxxx) display from profile page - Rename "手机:" label to "ID:" for phone number display Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1bdb9bb336
commit
183b2bef59
|
|
@ -175,48 +175,13 @@ class ProfilePage extends ConsumerWidget {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Row(
|
// 手机号显示为ID
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
'ID: ${user.accountSequence ?? '--------'}',
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 14,
|
|
||||||
color: _grayText,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 8),
|
|
||||||
GestureDetector(
|
|
||||||
onTap: () {
|
|
||||||
if (user.accountSequence != null) {
|
|
||||||
Clipboard.setData(
|
|
||||||
ClipboardData(text: user.accountSequence!),
|
|
||||||
);
|
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
|
||||||
const SnackBar(
|
|
||||||
content: Text('ID已复制'),
|
|
||||||
duration: Duration(seconds: 1),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
child: const Icon(
|
|
||||||
Icons.copy,
|
|
||||||
size: 16,
|
|
||||||
color: _grayText,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
// 手机号
|
|
||||||
if (user.phone != null)
|
if (user.phone != null)
|
||||||
Padding(
|
Text(
|
||||||
padding: const EdgeInsets.only(top: 4),
|
'ID: ${user.phone}',
|
||||||
child: Text(
|
style: const TextStyle(
|
||||||
'手机: ${user.phone}',
|
fontSize: 14,
|
||||||
style: const TextStyle(
|
color: _grayText,
|
||||||
fontSize: 12,
|
|
||||||
color: _lightGray,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue