动态发布
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import 'package:chat/configs/app_colors.dart';
|
||||
import 'package:chat/controllers/private_controller.dart';
|
||||
import 'package:chat/routes/contact_routes.dart';
|
||||
import 'package:chat/routes/moments_routes.dart';
|
||||
import 'package:chat/services/auth_service.dart';
|
||||
import 'package:chat/services/tabbar_service.dart';
|
||||
import 'package:chat/widgets/custom_avatar.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
@@ -80,7 +81,7 @@ class _HeaderBackground extends StatelessWidget {
|
||||
bottom: 32,
|
||||
child: GestureDetector(
|
||||
child: Image.asset(
|
||||
'assets/images/login_bg.png',
|
||||
'assets/backgrounds/moment_2.jpg',
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
@@ -108,7 +109,12 @@ class _HeaderBackground extends StatelessWidget {
|
||||
const SizedBox(width: 8),
|
||||
Obx(() {
|
||||
return GestureDetector(
|
||||
onTap: () => TabbarService.to.index = 4,
|
||||
onTap: () async {
|
||||
await PrivateController.to.setCurrentFriend(
|
||||
AuthService.to.userId,
|
||||
);
|
||||
Get.toNamed(ContactRoutes.friendProfile);
|
||||
},
|
||||
child: CustomAvatar(
|
||||
AuthService.to.userInfo.value.avatar,
|
||||
size: 64,
|
||||
|
||||
Reference in New Issue
Block a user