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),
|
||||
Row(
|
||||
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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
// 手机号
|
||||
// 手机号显示为ID
|
||||
if (user.phone != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 4),
|
||||
child: Text(
|
||||
'手机: ${user.phone}',
|
||||
style: const TextStyle(
|
||||
fontSize: 12,
|
||||
color: _lightGray,
|
||||
),
|
||||
Text(
|
||||
'ID: ${user.phone}',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
color: _grayText,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue