feat: 重构 Reminder Notification 系统并更新应用包名

This commit is contained in:
qzl
2026-03-30 18:36:57 +08:00
parent 9fb2a6857b
commit 91bf3c3f96
90 changed files with 5133 additions and 3017 deletions
@@ -49,8 +49,7 @@ class HomeDateDivider extends StatelessWidget {
Widget build(BuildContext context) {
final colorScheme = Theme.of(context).colorScheme;
final now = DateTime.now();
const weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
final weekday = weekdays[date.weekday - 1];
final weekday = _weekdayLabel(context, date.weekday);
final label = date.year == now.year
? context.l10n.homeDateLabelNoYear(date.month, date.day, weekday)
: context.l10n.homeDateLabelWithYear(
@@ -69,6 +68,19 @@ class HomeDateDivider extends StatelessWidget {
),
);
}
String _weekdayLabel(BuildContext context, int weekday) {
final labels = [
context.l10n.calendarWeekdaySun,
context.l10n.calendarWeekdayMon,
context.l10n.calendarWeekdayTue,
context.l10n.calendarWeekdayWed,
context.l10n.calendarWeekdayThu,
context.l10n.calendarWeekdayFri,
context.l10n.calendarWeekdaySat,
];
return labels[weekday % 7];
}
}
class HomeLoadMoreButton extends StatelessWidget {