fix(apps): 修复通知点击不显示ReminderOverlay和日历编辑后不刷新问题
- AppDelegate: 只存储payload字段而非整个userInfo字典 - LocalNotificationService: 移除旧的取消/稍后提醒action按钮配置 - ReminderNotificationCallbacks: 添加onNotificationPayloadReceived静态回调 - IOSNotificationPayloadBridge: 添加setPendingPayload方法 - main.dart: 设置onNotificationPayloadReceived触发ReminderOverlay显示,添加WidgetsBindingObserver处理后台恢复 - CalendarEventDetailScreen: 编辑保存后正确传递刷新信号给日视图
This commit is contained in:
@@ -218,15 +218,19 @@ class _CalendarEventDetailScreenState extends State<CalendarEventDetailScreen> {
|
||||
return event.startAt.isBefore(now);
|
||||
}
|
||||
|
||||
void _handleHeaderAction(
|
||||
Future<void> _handleHeaderAction(
|
||||
_CalendarHeaderAction action,
|
||||
ScheduleItemModel event,
|
||||
) {
|
||||
) async {
|
||||
switch (action) {
|
||||
case _CalendarHeaderAction.edit:
|
||||
context.push(AppRoutes.calendarEventEdit(event.id)).then((_) {
|
||||
final changed = await context.push<bool>(
|
||||
AppRoutes.calendarEventEdit(event.id),
|
||||
);
|
||||
if (changed == true) {
|
||||
_loadEvent();
|
||||
});
|
||||
if (mounted) context.pop(true);
|
||||
}
|
||||
return;
|
||||
case _CalendarHeaderAction.delete:
|
||||
_showDeleteConfirmation();
|
||||
|
||||
Reference in New Issue
Block a user