avatarItem function
Implementation
Widget avatarItem(
BuildContext context,
ZegoUIKitUser user,
ZegoAvatarBuilder? builder,
) {
return Container(
width: 72.zR,
height: 72.zR,
decoration:
const BoxDecoration(color: Color(0xffDBDDE3), shape: BoxShape.circle),
child: Center(
child: ValueListenableBuilder(
valueListenable: ZegoUIKitUserPropertiesNotifier(user),
builder: (context, _, __) {
return builder?.call(context, Size(72.zR, 72.zR), user, {}) ??
Text(
user.name.isNotEmpty ? user.name.characters.first : '',
style: TextStyle(
fontSize: 32.0.zR,
color: const Color(0xff222222),
decoration: TextDecoration.none,
),
);
},
),
),
);
}