mod: view user from whisper

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-22 20:32:44 +08:00
parent 92f96c93f0
commit 246061c69e

View File

@@ -99,13 +99,22 @@ class WhisperSessionItem extends StatelessWidget {
type: 'avatar', type: 'avatar',
src: item.accountInfo?.face ?? "", src: item.accountInfo?.face ?? "",
); );
return item.unreadCount != null && item.unreadCount! > 0 return GestureDetector(
? Badge( onTap: item.accountInfo?.mid != null
label: Text(" ${item.unreadCount} "), ? () {
alignment: Alignment.topRight, Get.toNamed(
child: buildAvatar(), '/member?mid=${item.accountInfo!.mid}',
) );
: buildAvatar(); }
: null,
child: item.unreadCount != null && item.unreadCount! > 0
? Badge(
label: Text(" ${item.unreadCount} "),
alignment: Alignment.topRight,
child: buildAvatar(),
)
: buildAvatar(),
);
}, },
), ),
title: Text(item.accountInfo?.name ?? ""), title: Text(item.accountInfo?.name ?? ""),