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(
|
leading: Badge(
|
||||||
isLabelVisible: false,
|
isLabelVisible:
|
||||||
|
sessionList[i].unreadCount > 0,
|
||||||
backgroundColor: Theme.of(context)
|
backgroundColor: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.primary,
|
.primary,
|
||||||
label: Text(sessionList[i]
|
textColor: Theme.of(context)
|
||||||
.unreadCount
|
.colorScheme
|
||||||
.toString()),
|
.onInverseSurface,
|
||||||
alignment: Alignment.bottomRight,
|
label: Text(
|
||||||
|
" ${sessionList[i].unreadCount.toString()} "),
|
||||||
|
alignment: Alignment.topRight,
|
||||||
child: NetworkImgLayer(
|
child: NetworkImgLayer(
|
||||||
width: 45,
|
width: 45,
|
||||||
height: 45,
|
height: 45,
|
||||||
|
|||||||
Reference in New Issue
Block a user