showProfilePopup method
dynamic
showProfilePopup(
)
Implementation
showProfilePopup(Rx<ProfileDetails> profile, BuildContext context) {
showQuickProfilePopup(
context: context,
// chatItem: chatItem,
chatTap: () {
// Get.back();
Navigator.pop(context);
onListItemPressed(profile.value, context);
},
infoTap: () {
// Get.back();
Navigator.pop(context);
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);
}