showProfilePopup method
dynamic
showProfilePopup(
- Rx<
ProfileDetails> profile
Implementation
showProfilePopup(Rx<ProfileDetails> profile) {
showQuickProfilePopup(
context: Get.context,
// chatItem: chatItem,
chatTap: () {
Get.back();
onListItemPressed(profile.value);
},
infoTap: () {
Get.back();
if (profile.value.isGroupProfile ?? false) {
// Get.toNamed(Routes.groupInfo, arguments: profile.value);
Navigator.push(
context,
MaterialPageRoute(
builder: (con) =>
GroupInfoView(jid: profile.value.jid.checkNull())));
} else {
// Get.toNamed(Routes.chatInfo, arguments: profile.value);
Navigator.push(
context,
MaterialPageRoute(
builder: (con) =>
ChatInfoView(jid: profile.value.jid.checkNull())));
}
},
profile: profile,
availableFeatures: availableFeatures,
callTap: () {},
videoTap: () {});
}