feat:更新主题色兼容
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user