feat:增加common框架

This commit is contained in:
2025-11-23 20:17:10 +08:00
parent 8795279d8a
commit 607b27d54f
26 changed files with 208 additions and 1116 deletions

View File

@@ -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');
}
}