mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: view user from whisper
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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(
|
||||||
|
onTap: item.accountInfo?.mid != null
|
||||||
|
? () {
|
||||||
|
Get.toNamed(
|
||||||
|
'/member?mid=${item.accountInfo!.mid}',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
: null,
|
||||||
|
child: item.unreadCount != null && item.unreadCount! > 0
|
||||||
? Badge(
|
? Badge(
|
||||||
label: Text(" ${item.unreadCount} "),
|
label: Text(" ${item.unreadCount} "),
|
||||||
alignment: Alignment.topRight,
|
alignment: Alignment.topRight,
|
||||||
child: buildAvatar(),
|
child: buildAvatar(),
|
||||||
)
|
)
|
||||||
: buildAvatar();
|
: buildAvatar(),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(item.accountInfo?.name ?? ""),
|
title: Text(item.accountInfo?.name ?? ""),
|
||||||
|
|||||||
Reference in New Issue
Block a user