fix:清除角标
This commit is contained in:
parent
81b1fdd43d
commit
443b14450b
@ -1,5 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter_app_badger/flutter_app_badger.dart';
|
||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||
import 'package:star_lock/tools/baseGetXController.dart';
|
||||
import '../../../network/api_repository.dart';
|
||||
import '../../../tools/eventBusEventManage.dart';
|
||||
@ -46,6 +48,8 @@ class MessageListLogic extends BaseGetXController {
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
pageNo = 1;
|
||||
messageListDataRequest();
|
||||
// 清除角标
|
||||
FlutterAppBadger.removeBadge();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -278,6 +278,8 @@ dependencies:
|
||||
provider: ^6.1.2
|
||||
dio: ^4.0.6 # 网络请求库
|
||||
video_thumbnail: ^0.5.3
|
||||
# 角标管理
|
||||
flutter_app_badger: ^1.3.0
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user