样式修改

This commit is contained in:
czz
2025-07-24 15:52:36 +08:00
parent 42ad1ef14c
commit 882e848431
3 changed files with 15 additions and 9 deletions

View File

@@ -166,7 +166,15 @@ Timer? _messageTimer;
// }
void startMessagePolling(String selectapp) {
_messageTimer?.cancel();
if (selectapp == 'mht') {
if (Get.isRegistered<MhMessageController>()) {
Get.find<MhMessageController>().getMessageStatus();
}
} else {
if (Get.isRegistered<MessageController>()) {
Get.find<MessageController>().getMessageStatus();
}
}
_messageTimer = Timer.periodic(Duration(seconds: 10), (timer) async {
try {
if (selectapp == 'mht') {
@@ -341,7 +349,7 @@ class MyApp extends StatelessWidget {
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
locale: Locale('zh', 'CN'), // 设置默认语言为中文
locale: Locale('zh', 'CN'), // 设置默认语言为中文
supportedLocales: [
Locale('en', 'US'),
Locale('zh', 'CN'),