|
|
|
|
@ -83,8 +83,7 @@ class _GroupChatDetailScreenState extends State<GroupChatDetailScreen> {
|
|
|
|
|
data = Provider.of<ChatProviderModel>(context, listen: false);
|
|
|
|
|
// callPro = Provider.of<ChatCallProvider>(context, listen: false);
|
|
|
|
|
if (params != null) {
|
|
|
|
|
data.getGroupChatHistory(
|
|
|
|
|
params!.groupChatDetails!
|
|
|
|
|
data.getGroupChatHistory(params!.groupChatDetails!
|
|
|
|
|
// senderUID: AppState().chatDetails!.response!.id!.toInt(),
|
|
|
|
|
// receiverUID: params!.groupChatHistory!.groupId!,
|
|
|
|
|
// loadMore: false,
|
|
|
|
|
@ -147,7 +146,7 @@ class _GroupChatDetailScreenState extends State<GroupChatDetailScreen> {
|
|
|
|
|
dateTime: m.groupChatHistory[i].createdDate!,
|
|
|
|
|
cItem: m.groupChatHistory[i],
|
|
|
|
|
),
|
|
|
|
|
onRightSwipe: () {
|
|
|
|
|
onRightSwipe: (val) {
|
|
|
|
|
m.groupChatReply(
|
|
|
|
|
m.groupChatHistory[i],
|
|
|
|
|
);
|
|
|
|
|
@ -254,8 +253,7 @@ class _GroupChatDetailScreenState extends State<GroupChatDetailScreen> {
|
|
|
|
|
userStatus: 0,
|
|
|
|
|
userEmail: "",
|
|
|
|
|
targetUserName: params!.groupChatDetails!.groupName!,
|
|
|
|
|
userList: params!.groupChatDetails!.groupUserList!
|
|
|
|
|
),
|
|
|
|
|
userList: params!.groupChatDetails!.groupUserList!),
|
|
|
|
|
)
|
|
|
|
|
.paddingOnly(right: 21),
|
|
|
|
|
],
|
|
|
|
|
@ -309,9 +307,7 @@ class _GroupChatDetailScreenState extends State<GroupChatDetailScreen> {
|
|
|
|
|
RotationTransition(
|
|
|
|
|
turns: const AlwaysStoppedAnimation(45 / 360),
|
|
|
|
|
child: const Icon(Icons.attach_file_rounded, size: 26, color: MyColors.grey3AColor).onPress(
|
|
|
|
|
() => {
|
|
|
|
|
m.selectImageToUpload(context)
|
|
|
|
|
},
|
|
|
|
|
() => {m.selectImageToUpload(context)},
|
|
|
|
|
),
|
|
|
|
|
).paddingOnly(right: 15),
|
|
|
|
|
const Icon(
|
|
|
|
|
@ -322,13 +318,12 @@ class _GroupChatDetailScreenState extends State<GroupChatDetailScreen> {
|
|
|
|
|
}),
|
|
|
|
|
SvgPicture.asset("assets/icons/chat/chat_send_icon.svg", height: 26, width: 26)
|
|
|
|
|
.onPress(
|
|
|
|
|
() =>m.sendGroupChatMessage(context,
|
|
|
|
|
() => m.sendGroupChatMessage(context,
|
|
|
|
|
targetUserId: params!.groupChatDetails!.groupId!,
|
|
|
|
|
userStatus: 0,
|
|
|
|
|
userEmail: "",
|
|
|
|
|
targetUserName: params!.groupChatDetails!.groupName!,
|
|
|
|
|
userList: params!.groupChatDetails!.groupUserList!
|
|
|
|
|
),
|
|
|
|
|
userList: params!.groupChatDetails!.groupUserList!),
|
|
|
|
|
)
|
|
|
|
|
.paddingOnly(right: 21),
|
|
|
|
|
],
|
|
|
|
|
@ -387,8 +382,8 @@ class _GroupChatDetailScreenState extends State<GroupChatDetailScreen> {
|
|
|
|
|
// callPro.stopListeners();
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GroupUserList getCurrentUser(int id, GroupResponse groupChatDetails) {
|
|
|
|
|
return groupChatDetails.groupUserList!.firstWhere((GroupUserList item) => item.id ==id);
|
|
|
|
|
return groupChatDetails.groupUserList!.firstWhere((GroupUserList item) => item.id == id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|