showProfilePopup method

dynamic showProfilePopup(
  1. Rx<Profile> profile,
  2. BuildContext context
)

Implementation

showProfilePopup(Rx<Profile> profile, BuildContext context){
  showQuickProfilePopup(context: context,
      // chatItem: chatItem,
      chatTap: () {
        // Get.back();
        Navigator.pop(context);
        onListItemPressed(profile.value, context);
      },
      callTap: () {},
      videoTap: () {},
      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);
}