feat:增加common框架
This commit is contained in:
@@ -101,9 +101,8 @@ class NotifyService {
|
||||
body,
|
||||
tz.TZDateTime.from(scheduledTime, tz.local),
|
||||
_details,
|
||||
uiLocalNotificationDateInterpretation:
|
||||
UILocalNotificationDateInterpretation.absoluteTime,
|
||||
androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle,
|
||||
uiLocalNotificationDateInterpretation: dateInterpretation,
|
||||
androidScheduleMode: scheduleMode,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -111,7 +110,7 @@ class NotifyService {
|
||||
Future<void> cancelNotification(int id) async {
|
||||
try {
|
||||
await _notifications.cancel(id);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
print('取消通知失败: $e');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user