From f88703ec0f34cea478700f6be513a67657193be5 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Wed, 13 Aug 2025 21:36:52 +0200 Subject: [PATCH] Allow selecting future dates for the routine dates --- lib/widgets/routines/forms/routine.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/routines/forms/routine.dart b/lib/widgets/routines/forms/routine.dart index d8bb5bd1..8585469b 100644 --- a/lib/widgets/routines/forms/routine.dart +++ b/lib/widgets/routines/forms/routine.dart @@ -126,7 +126,7 @@ class _RoutineFormState extends State { context: context, initialDate: startDate, firstDate: DateTime(DateTime.now().year - 10), - lastDate: DateTime.now(), + lastDate: DateTime(DateTime.now().year + 2), ); if (picked == null) { @@ -163,7 +163,7 @@ class _RoutineFormState extends State { context: context, initialDate: endDate, firstDate: DateTime(DateTime.now().year - 10), - lastDate: DateTime.now(), + lastDate: DateTime(DateTime.now().year + 2), ); if (picked == null) {