mod: 消息计数清零

This commit is contained in:
guozhigq
2024-06-23 23:12:04 +08:00
parent 8e8d172306
commit 814f633bd2

View File

@ -69,7 +69,14 @@ class _WhisperPageState extends State<WhisperPage> {
children: [
..._whisperController.noticesList.map((element) {
return InkWell(
onTap: () => Get.toNamed(element['path']),
onTap: () {
Get.toNamed(element['path']);
if (element['count'] > 0) {
element['count'] = 0;
}
_whisperController.noticesList.refresh();
},
onLongPress: () {},
borderRadius: StyleString.mdRadius,
child: Column(