|
|
@ -4,6 +4,7 @@ import 'package:dating_touchme_app/extension/ex_widget.dart'; |
|
|
import 'package:dating_touchme_app/generated/assets.dart'; |
|
|
import 'package:dating_touchme_app/generated/assets.dart'; |
|
|
import 'package:dating_touchme_app/model/home/user_info_data.dart'; |
|
|
import 'package:dating_touchme_app/model/home/user_info_data.dart'; |
|
|
import 'package:dating_touchme_app/model/live/live_chat_message.dart'; |
|
|
import 'package:dating_touchme_app/model/live/live_chat_message.dart'; |
|
|
|
|
|
import 'package:dating_touchme_app/pages/home/report_page.dart'; |
|
|
import 'package:dating_touchme_app/pages/message/chat_page.dart'; |
|
|
import 'package:dating_touchme_app/pages/message/chat_page.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
@ -410,7 +411,7 @@ void showUserProfileDialog( |
|
|
SizedBox(height: 15.w), |
|
|
SizedBox(height: 15.w), |
|
|
// 底部操作链接 |
|
|
// 底部操作链接 |
|
|
if(isHost) Row( |
|
|
if(isHost) Row( |
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
children: [ |
|
|
children: [ |
|
|
_buildActionLink('私聊', () { |
|
|
_buildActionLink('私聊', () { |
|
|
SmartDialog.dismiss(); |
|
|
SmartDialog.dismiss(); |
|
|
@ -418,12 +419,6 @@ void showUserProfileDialog( |
|
|
userId: message.userId, |
|
|
userId: message.userId, |
|
|
)); |
|
|
)); |
|
|
}), |
|
|
}), |
|
|
Container( |
|
|
|
|
|
width: 1.w, |
|
|
|
|
|
height: 15.w, |
|
|
|
|
|
color: const Color.fromRGBO(212, 212, 212, 1), |
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 15.w), |
|
|
|
|
|
), |
|
|
|
|
|
if(!(userData.isFriend ?? false)) _buildActionLink('踢出房间', () async { |
|
|
if(!(userData.isFriend ?? false)) _buildActionLink('踢出房间', () async { |
|
|
// 解除连麦 |
|
|
// 解除连麦 |
|
|
await roomController.kickingRtcChannelUser( |
|
|
await roomController.kickingRtcChannelUser( |
|
|
@ -436,26 +431,50 @@ void showUserProfileDialog( |
|
|
SmartDialog.dismiss(); |
|
|
SmartDialog.dismiss(); |
|
|
roomController.setDialogDismiss(false); |
|
|
roomController.setDialogDismiss(false); |
|
|
}), |
|
|
}), |
|
|
if(!(userData.isFriend ?? false)) Container( |
|
|
|
|
|
|
|
|
_buildActionLink('送礼', () { |
|
|
|
|
|
SmartDialog.dismiss(); |
|
|
|
|
|
onShowGiftPopup(1); |
|
|
|
|
|
}), |
|
|
|
|
|
Container( |
|
|
width: 1.w, |
|
|
width: 1.w, |
|
|
height: 15.w, |
|
|
height: 15.w, |
|
|
color: const Color.fromRGBO(212, 212, 212, 1), |
|
|
color: const Color.fromRGBO(212, 212, 212, 1), |
|
|
margin: EdgeInsets.symmetric(horizontal: 15.w), |
|
|
margin: EdgeInsets.symmetric(horizontal: 15.w), |
|
|
), |
|
|
), |
|
|
_buildActionLink('送礼物', () { |
|
|
|
|
|
|
|
|
_buildActionLink('举报', () { |
|
|
SmartDialog.dismiss(); |
|
|
SmartDialog.dismiss(); |
|
|
onShowGiftPopup(1); |
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get.to(() => ReportPage(id: userData.miUserId ?? "", userId: userData.miUserId ?? "", type: 1,)); |
|
|
|
|
|
}, color: const Color.fromRGBO(144, 144, 144, 1)), |
|
|
|
|
|
_buildActionLink('拉黑', () { |
|
|
|
|
|
SmartDialog.dismiss(); |
|
|
|
|
|
roomController.createUserBlack(userData.miUserId ?? ""); |
|
|
|
|
|
}, color: const Color.fromRGBO(144, 144, 144, 1)), |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
// 底部操作链接 |
|
|
// 底部操作链接 |
|
|
if(!isHost) Row( |
|
|
if(!isHost) Row( |
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
children: [ |
|
|
children: [ |
|
|
if(!(userData.isFriend ?? false)) _buildActionLink('送礼物', () { |
|
|
|
|
|
|
|
|
if(!(userData.isFriend ?? false)) _buildActionLink('送礼', () { |
|
|
SmartDialog.dismiss(); |
|
|
SmartDialog.dismiss(); |
|
|
onShowGiftPopup(1); |
|
|
onShowGiftPopup(1); |
|
|
}), |
|
|
}), |
|
|
|
|
|
if(!(userData.isFriend ?? false)) Container( |
|
|
|
|
|
width: 1.w, |
|
|
|
|
|
height: 15.w, |
|
|
|
|
|
color: const Color.fromRGBO(212, 212, 212, 1), |
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 15.w), |
|
|
|
|
|
), |
|
|
|
|
|
_buildActionLink('举报', () { |
|
|
|
|
|
SmartDialog.dismiss(); |
|
|
|
|
|
|
|
|
|
|
|
Get.to(() => ReportPage(id: userData.miUserId ?? "", userId: userData.miUserId ?? "", type: 1,)); |
|
|
|
|
|
}, color: const Color.fromRGBO(144, 144, 144, 1)), |
|
|
|
|
|
_buildActionLink('拉黑', () { |
|
|
|
|
|
SmartDialog.dismiss(); |
|
|
|
|
|
roomController.createUserBlack(userData.miUserId ?? ""); |
|
|
|
|
|
}, color: const Color.fromRGBO(144, 144, 144, 1)), |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
@ -508,7 +527,7 @@ Widget _buildTag(String text, Color bgColor) { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Widget _buildActionLink(String text, VoidCallback onTap) { |
|
|
|
|
|
|
|
|
Widget _buildActionLink(String text, VoidCallback onTap, {Color color = const Color.fromRGBO(117, 98, 249, 1)}) { |
|
|
return GestureDetector( |
|
|
return GestureDetector( |
|
|
onTap: onTap, |
|
|
onTap: onTap, |
|
|
child: Text( |
|
|
child: Text( |
|
|
@ -516,7 +535,7 @@ Widget _buildActionLink(String text, VoidCallback onTap) { |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 14.w, |
|
|
fontSize: 14.w, |
|
|
fontWeight: FontWeight.w500, |
|
|
fontWeight: FontWeight.w500, |
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
|
|
|
|
|
color: color, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
|