mod: 消息计数清零
This commit is contained in:
@ -69,7 +69,14 @@ class _WhisperPageState extends State<WhisperPage> {
|
|||||||
children: [
|
children: [
|
||||||
..._whisperController.noticesList.map((element) {
|
..._whisperController.noticesList.map((element) {
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () => Get.toNamed(element['path']),
|
onTap: () {
|
||||||
|
Get.toNamed(element['path']);
|
||||||
|
|
||||||
|
if (element['count'] > 0) {
|
||||||
|
element['count'] = 0;
|
||||||
|
}
|
||||||
|
_whisperController.noticesList.refresh();
|
||||||
|
},
|
||||||
onLongPress: () {},
|
onLongPress: () {},
|
||||||
borderRadius: StyleString.mdRadius,
|
borderRadius: StyleString.mdRadius,
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
Reference in New Issue
Block a user