buildProfileImage function
Widget
buildProfileImage(
- ProfileDetails item, {
- double size = 105,
})
Implementation
Widget buildProfileImage(ProfileDetails item, {double size = 105}) {
return ImageNetwork(
url: item.image.toString(),
width: size,
height: size,
clipOval: true,
errorWidget: item.isGroupProfile.checkNull()
? ClipOval(
child: AppUtils.assetIcon(
assetName: groupImg,
height: size,
width: size,
fit: BoxFit.cover,
),
)
: ProfileTextImage(
text: item.getName(),
radius: size / 2,
),
isGroup: item.isGroupProfile.checkNull(),
blocked: item.isBlockedMe.checkNull() || item.isAdminBlocked.checkNull(),
unknown: (!item.isItSavedContact.checkNull() || item.isDeletedContact()),
);
}