mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 私信列表页支持未读条数显示
This commit is contained in:
@@ -140,14 +140,17 @@ class _WhisperPageState extends State<WhisperPage> {
|
||||
},
|
||||
),
|
||||
leading: Badge(
|
||||
isLabelVisible: false,
|
||||
isLabelVisible:
|
||||
sessionList[i].unreadCount > 0,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary,
|
||||
label: Text(sessionList[i]
|
||||
.unreadCount
|
||||
.toString()),
|
||||
alignment: Alignment.bottomRight,
|
||||
textColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.onInverseSurface,
|
||||
label: Text(
|
||||
" ${sessionList[i].unreadCount.toString()} "),
|
||||
alignment: Alignment.topRight,
|
||||
child: NetworkImgLayer(
|
||||
width: 45,
|
||||
height: 45,
|
||||
|
||||
Reference in New Issue
Block a user