mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
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:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user