From d94d9600a71ec6f993f897b9b830d4bd0e3c2ca6 Mon Sep 17 00:00:00 2001 From: socksprox <36358673+socksprox@users.noreply.github.com> Date: Wed, 25 Feb 2026 03:28:02 +0100 Subject: [PATCH] fix(mobile): birthday picker shows limited months when no date exists (#26407) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ScrollDatePicker defaults maximumDate to DateTime.now(). When no birthday exists, the picker starts at today (Feb 2026) with max also Feb 2026 — so only Jan–Feb are available for the current year. Fix applied: Added maximumDate: DateTime(DateTime.now().year, 12, 31) at person_edit_birthday_modal.widget.dart:93, allowing all 12 months to be selected while still preventing future-year birthdays. * fix(mobile): initialize birthday picker to past date to prevent future birthdays When no birthday exists, initialize to 30 years ago instead of today. This allows all 12 months to be selectable while keeping maximumDate as DateTime.now() to prevent future birthday selection. Fixes issue where only current months were available due to maxDate constraint. --------- Co-authored-by: socksprox --- .../widgets/people/person_edit_birthday_modal.widget.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/lib/presentation/widgets/people/person_edit_birthday_modal.widget.dart b/mobile/lib/presentation/widgets/people/person_edit_birthday_modal.widget.dart index dd6390406b..7ed02af26b 100644 --- a/mobile/lib/presentation/widgets/people/person_edit_birthday_modal.widget.dart +++ b/mobile/lib/presentation/widgets/people/person_edit_birthday_modal.widget.dart @@ -25,7 +25,7 @@ class _DriftPersonNameEditFormState extends ConsumerState