我的二维码
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:chat/configs/app_colors.dart';
|
||||
import 'package:chat/services/auth_service.dart';
|
||||
import 'package:chat/views/home/widgets/pop_menu_item.dart';
|
||||
import 'package:chat/views/public/scan_page.dart';
|
||||
import 'package:chat/widgets/custom_avatar.dart';
|
||||
@@ -43,34 +44,28 @@ class _UserQrCodePageState extends State<UserQrCodePage> {
|
||||
Row(
|
||||
children: [
|
||||
CustomAvatar(
|
||||
'',
|
||||
AuthService.to.userInfo.value.avatar,
|
||||
size: 64,
|
||||
radius: 6,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: const [
|
||||
Text(
|
||||
'Jason',
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 8),
|
||||
],
|
||||
const SizedBox(width: 16),
|
||||
Text(
|
||||
AuthService.to.userInfo.value.nickname ?? '',
|
||||
style: const TextStyle(
|
||||
fontSize: 24,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 32),
|
||||
QrImage(
|
||||
data: 'BEFRIEND|5',
|
||||
data: 'BEFRIEND|${AuthService.to.userInfo.value.username}',
|
||||
version: 3,
|
||||
size: Get.width * 0.8,
|
||||
),
|
||||
const SizedBox(height: 32),
|
||||
const Text(
|
||||
'扫一扫上面的二维码,加我共力好友',
|
||||
'扫一扫上面的二维码,加我ZH-CHAT好友',
|
||||
style: TextStyle(
|
||||
color: AppColors.unactive,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user