mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Bump last selectable date to 1 year in the future
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user