update power_logger, message center page update

hmxc
小赖 4 years ago
parent be4c786510
commit bd49c8a6a1

@ -83,26 +83,9 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
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<String, String>
);
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),

@ -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:

@ -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

Loading…
Cancel
Save