mod: 私信列表页支持未读条数显示

This commit is contained in:
orz12
2024-01-24 12:38:10 +08:00
parent fbea5a1104
commit 772a6a9843

View File

@@ -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,