Merge branch 'feature-sendMsg'

This commit is contained in:
guozhigq
2024-06-26 22:19:14 +08:00
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class WhisperController extends GetxController {
}, },
{ {
'icon': Icons.alternate_email, 'icon': Icons.alternate_email,
'title': '@ 我的', 'title': '@我的',
'path': '/messageAt', 'path': '/messageAt',
'count': 0, 'count': 0,
}, },

View File

@ -1,5 +1,6 @@
import 'package:easy_debounce/easy_throttle.dart'; import 'package:easy_debounce/easy_throttle.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:pilipala/common/constants.dart'; import 'package:pilipala/common/constants.dart';
import 'package:pilipala/common/skeleton/skeleton.dart'; import 'package:pilipala/common/skeleton/skeleton.dart';
@ -70,6 +71,11 @@ class _WhisperPageState extends State<WhisperPage> {
..._whisperController.noticesList.map((element) { ..._whisperController.noticesList.map((element) {
return InkWell( return InkWell(
onTap: () { onTap: () {
if (['/messageAt', '/messageSystem']
.contains(element['path'])) {
SmartDialog.showToast('功能开发中');
return;
}
Get.toNamed(element['path']); Get.toNamed(element['path']);
if (element['count'] > 0) { if (element['count'] > 0) {