Merge pull request #873 from afzal09/fix_Calendar_Future_Dates_issue872

changed calendar settings to allow to choose future days upto 112 days.
This commit is contained in:
Roland Geider
2025-08-25 19:42:31 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -226,7 +226,7 @@ class _DashboardCalendarWidgetState extends State<DashboardCalendarWidget>
TableCalendar<Event>(
locale: Localizations.localeOf(context).languageCode,
firstDay: DateTime.now().subtract(const Duration(days: 1000)),
lastDay: DateTime.now(),
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(),
lastDate: DateTime.now().add(const Duration(days: 365)),
);
if (picked == null) {