build method

  1. @override
dynamic build(
  1. dynamic context,
  2. dynamic ref
)

Implementation

@override
Widget build(BuildContext context, WidgetRef ref) {
  final memberInfo = ref.watch(
    memberAvatarInfoProvider((roomId: roomId, userId: memberId)),
  );
  final avatarSize = Theme.of(context).textTheme.bodySmall?.fontSize ?? 12.0;
  return Tooltip(
    message: memberId,
    child: ActerInlineTextButton.icon(
      icon: ActerAvatar(
        options: AvatarOptions.DM(
          memberInfo,
          size: avatarSize,
        ),
      ),
      label: Text(memberInfo.displayName ?? memberId),
      onPressed: () async {
        await showMemberInfoDrawer(
          context: context,
          roomId: roomId,
          memberId: memberId,
          // isShowActions: false,
        );
      },
    ),
  );
}