feat:更新主题色兼容

This commit is contained in:
2025-11-21 14:58:11 +08:00
parent 3ea162f33e
commit f133e5ce13
11 changed files with 112 additions and 75 deletions

View File

@@ -42,7 +42,11 @@ class _MainScreenState extends State<MainScreen> {
TodoSortMode.priority,
);
final List<Todo> todayTodos =
todoResult.where((todo) => isToday(todo.scheduledTime)).toList();
todoResult
.where(
(todo) => !todo.isCompleted && isAfterToday(todo.scheduledTime),
)
.toList();
for (Todo todo in todayTodos) {
await notifyService.scheduleNotification(
@@ -57,7 +61,7 @@ class _MainScreenState extends State<MainScreen> {
final List<Calendar> calendarResult = calendarService.getAllCalendars();
final List<Calendar> todayCalendars =
calendarResult
.where((calendar) => isToday(calendar.scheduledTime))
.where((item) => isAfterToday(item.scheduledTime))
.toList();
for (Calendar calendar in todayCalendars) {