feat(05-01): add CalendarDayState model, Riverpod providers, and l10n strings

- CalendarDayState: selectedDate, dayTasks, overdueTasks fields with isEmpty helper
- selectedDateProvider: NotifierProvider with SelectedDateNotifier, defaults to today
- calendarDayProvider: StreamProvider.autoDispose, overdue only when viewing today
- Add calendarTodayButton l10n string ("Heute") to ARB and generated dart files
This commit is contained in:
2026-03-16 21:24:07 +01:00
parent c666f9a1c6
commit 68ba7c65ce
5 changed files with 96 additions and 1 deletions

View File

@@ -106,5 +106,6 @@
"count": { "type": "int" },
"overdue": { "type": "int" }
}
}
},
"calendarTodayButton": "Heute"
}

View File

@@ -513,6 +513,12 @@ abstract class AppLocalizations {
/// In de, this message translates to:
/// **'{count} Aufgaben fällig ({overdue} überfällig)'**
String notificationBodyWithOverdue(int count, int overdue);
/// No description provided for @calendarTodayButton.
///
/// In de, this message translates to:
/// **'Heute'**
String get calendarTodayButton;
}
class _AppLocalizationsDelegate

View File

@@ -236,4 +236,7 @@ class AppLocalizationsDe extends AppLocalizations {
String notificationBodyWithOverdue(int count, int overdue) {
return '$count Aufgaben fällig ($overdue überfällig)';
}
@override
String get calendarTodayButton => 'Heute';
}