buildProfileStatus method

Expanded buildProfileStatus()

Implementation

Expanded buildProfileStatus() {
  return Expanded(
      child: FutureBuilder(
          future: getProfileDetails(item.jid!),
          builder: (context, profileData) {
            if (profileData.hasData) {
              return Text(
                profileData.data?.status ?? Constants.emptyString,
                style: TextStyle(
                    color: MirrorflyUikit.getTheme?.textSecondaryColor),
              );
            }
            return const Text(Constants.emptyString);
          }));
}