|
|
|
@ -8,6 +8,7 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
|
|
|
|
import 'package:huixiang/community/community_view/community_dynamic.dart'; |
|
|
|
|
import 'package:huixiang/community/photo_view_gallery_screen.dart'; |
|
|
|
|
import 'package:huixiang/generated/l10n.dart'; |
|
|
|
|
import 'package:huixiang/main.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/article.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/base_data.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/comunity_comment.dart'; |
|
|
|
@ -862,6 +863,10 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver,Sing
|
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
if (memberInfor?.id == sharedPreferences.getString("userId")) { |
|
|
|
|
SmartDialog.showToast("不能跟自己聊天", alignment: Alignment.center); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
Navigator.of(context) |
|
|
|
|
.pushNamed('/router/chat_details_page',arguments:{ |
|
|
|
|
"toUser": ImUser( |
|
|
|
@ -1298,6 +1303,10 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver,Sing
|
|
|
|
|
GestureDetector( |
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
onTap: () { |
|
|
|
|
if (memberInfor?.id == sharedPreferences.getString("userId")) { |
|
|
|
|
SmartDialog.showToast("不能跟自己聊天", alignment: Alignment.center); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
Navigator.of(context) |
|
|
|
|
.pushNamed('/router/chat_details_page', arguments: { |
|
|
|
|
"toUser": ImUser( |
|
|
|
|