会话加好友
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'package:chat/routes/user_routes.dart';
|
||||
import 'package:chat/services/auth_service.dart';
|
||||
import 'package:chat/widgets/custom_avatar.dart';
|
||||
import 'package:chat/views/user/index/widgets/user_top_bar.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
@@ -18,34 +17,8 @@ class _UserPageState extends State<UserPage> {
|
||||
child: Scaffold(
|
||||
body: Column(
|
||||
children: [
|
||||
GetX<AuthService>(builder: (_) {
|
||||
return Row(
|
||||
children: [
|
||||
CustomAvatar(
|
||||
_.userInfo.value.avatar,
|
||||
size: 72,
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
Text(_.userInfo.value.nickname ?? ''),
|
||||
Text('${_.userInfo.value.address}'),
|
||||
],
|
||||
),
|
||||
Expanded(child: Container()),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Get.toNamed(UserRoutes.qrCode);
|
||||
},
|
||||
child: Row(
|
||||
children: const [
|
||||
Icon(Icons.qr_code),
|
||||
Icon(Icons.arrow_forward_ios),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}),
|
||||
const UserTopBar(),
|
||||
const SizedBox(height: 8),
|
||||
ListTile(
|
||||
onTap: () {
|
||||
Get.toNamed(UserRoutes.share);
|
||||
|
||||
Reference in New Issue
Block a user