From bd49c8a6a11addd26ca33eef02f895cc3e0d1bee Mon Sep 17 00:00:00 2001 From: laiiihz Date: Wed, 10 Mar 2021 11:19:52 +0800 Subject: [PATCH] update power_logger, message center page update --- .../message_center_page.dart | 23 +++---------------- pubspec.lock | 22 ++++++++++++++---- pubspec.yaml | 4 ++-- 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/lib/pages/message_center_page/message_center_page.dart b/lib/pages/message_center_page/message_center_page.dart index 21b111e5..9a0fac5b 100644 --- a/lib/pages/message_center_page/message_center_page.dart +++ b/lib/pages/message_center_page/message_center_page.dart @@ -83,26 +83,9 @@ class _MessageCenterPageState extends State { actions: [ MaterialButton( onPressed: () async { - // await NetUtil().dio.get(API.message.allRead); - // _refreshController.callRefresh(); - // setState(() {}); - LocalNotification localNotification = LocalNotification( - id: 234, - title: 'notification title', - buildId: 1, - content: 'notification content', - fireTime: DateTime.fromMillisecondsSinceEpoch( - DateTime.now().millisecond + 3000), - subtitle: 'notification subtitle', // 该参数只有在 iOS 有效 - badge: 5, // 该参数只有在 iOS 有效 - extra: {'test': 'test'}, - // 设置 extras ,extras 需要是 Map - ); - JPush().sendLocalNotification(localNotification).then((res) { - print(res); - }); - // JPush().applyPushAuthority(new NotificationSettingsIOS( - // sound: true, alert: true, badge: true)); + await NetUtil().dio.get(API.message.allRead); + _refreshController.callRefresh(); + setState(() {}); }, child: '全部已读'.text.size(28.sp).black.make(), padding: EdgeInsets.symmetric(horizontal: 32.w), diff --git a/pubspec.lock b/pubspec.lock index 92e77aae..17f75bc7 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -239,6 +239,20 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "0.3.5" + device_info: + dependency: transitive + description: + name: device_info + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.0.0" + device_info_platform_interface: + dependency: transitive + description: + name: device_info_platform_interface + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.0.1" dio: dependency: "direct main" description: @@ -713,7 +727,7 @@ packages: name: package_info url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.1" + version: "0.4.3+4" path: dependency: transitive description: @@ -824,10 +838,10 @@ packages: description: path: "." ref: HEAD - resolved-ref: "1469b68b32bb5a7d02e6c89c5a9933ef77f738ad" - url: "http://192.168.2.201:8099/aku_fe/power_logger.git" + resolved-ref: "0436e0b02d1673ee828a757413a86999cd25603c" + url: "http://159.75.73.143:8080/laiiihz/power_logger" source: git - version: "0.0.1" + version: "0.1.1" pretty_json: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 3ee789d4..db2c99a5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: # 权限组件 permission_handler: ^5.0.1+1 # 版本信息 - package_info: 0.4.1 + package_info: ^0.4.1 #上拉加载 pull_to_refresh: 1.6.2 # 状态管理 @@ -91,7 +91,7 @@ dependencies: image_picker: ^0.6.7+21 power_logger: git: - url: http://192.168.2.201:8099/aku_fe/power_logger.git + url: http://159.75.73.143:8080/laiiihz/power_logger flutter_rating_bar: ^3.2.0+1 jpush_flutter: ^0.6.3 badges: ^1.1.6