Bump last selectable date to 1 year in the future

This commit is contained in:
Roland Geider
2025-08-25 19:31:26 +02:00
parent a78da55464
commit b996b4b88b
2 changed files with 2 additions and 2 deletions

View File

@@ -225,7 +225,7 @@ class _DashboardCalendarWidgetState extends State<DashboardCalendarWidget>
TableCalendar<Event>(
locale: Localizations.localeOf(context).languageCode,
firstDay: DateTime.now().subtract(const Duration(days: 1000)),
lastDay: DateTime.now().add(const Duration(days: 112)),
lastDay: DateTime.now().add(const Duration(days: 365)),
focusedDay: _focusedDay,
selectedDayPredicate: (day) => isSameDay(_selectedDay, day),
rangeStartDay: _rangeStart,

View File

@@ -163,7 +163,7 @@ class _RoutineFormState extends State<RoutineForm> {
context: context,
initialDate: endDate,
firstDate: DateTime(DateTime.now().year - 10),
lastDate: DateTime.now().add(const Duration(days: 112)),
lastDate: DateTime.now().add(const Duration(days: 365)),
);
if (picked == null) {