|
...
|
...
|
@@ -10,13 +10,16 @@ import 'package:doublefeel_flutter/app/routes/app_pages.dart'; |
|
|
|
import 'package:doublefeel_flutter/app/utils/assets_helper.dart';
|
|
|
|
import 'package:doublefeel_flutter/app/utils/dialog_utils.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/config/app_environment_config.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/services/thinking_data_service.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/theme/app_theme.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/util/app_toast.dart';
|
|
|
|
import 'package:doublefeel_flutter/core/util/size_extensions.dart';
|
|
|
|
import 'package:doublefeel_flutter/data/local/user_preferences_storage.dart';
|
|
|
|
import 'package:doublefeel_flutter/data/models/local/user_preferences.dart';
|
|
|
|
import 'package:doublefeel_flutter/data/models/user/user_models.dart';
|
|
|
|
import 'package:doublefeel_flutter/l10n/l10n_extensions.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
|
|
...
|
...
|
@@ -207,17 +210,40 @@ class _ProfileHeader extends StatelessWidget { |
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
const SizedBox(height: 1),
|
|
|
|
Text(
|
|
|
|
'ID:${user?.uniqueCode ?? ''}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
height: 1.4,
|
|
|
|
),
|
|
|
|
const SizedBox(height: 4),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'ID:${user?.uniqueCode ?? ''}',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
height: 1.4,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
Clipboard.setData(
|
|
|
|
ClipboardData(text: user?.uniqueCode ?? ''),
|
|
|
|
);
|
|
|
|
AppToast.show(context.l10n.copiedSuccessfully);
|
|
|
|
ta.track('click_doublefeel_my_page',
|
|
|
|
properties: {'click_content': '复制ID'});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(4.0),
|
|
|
|
child: Image.asset(
|
|
|
|
width: 12,
|
|
|
|
height: 12,
|
|
|
|
'assets/images/common/ic_copy_purple.webp',
|
|
|
|
color: Color(0xFFA89EC5),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
...
|
...
|
|