From a11d6bb1c1988dc67a3f106e7b13e977caf907a6 Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Thu, 2 May 2024 14:44:52 +0200 Subject: [PATCH] Extend automatic selection on build from day-based picker to month/year pickers Signed-off-by: Hans Kokx --- lib/src/month_picker.dart | 2 ++ lib/src/year_picker.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/src/month_picker.dart b/lib/src/month_picker.dart index a522c96..15e8146 100644 --- a/lib/src/month_picker.dart +++ b/lib/src/month_picker.dart @@ -200,6 +200,8 @@ class _MonthPickerState extends State> { } textDirection = Directionality.of(context); + + widget.selectionLogic.onDayTapped(widget.selection.earliest); } @override diff --git a/lib/src/year_picker.dart b/lib/src/year_picker.dart index 6da12ba..2f4a30a 100644 --- a/lib/src/year_picker.dart +++ b/lib/src/year_picker.dart @@ -211,6 +211,8 @@ class _YearPickerState extends State> { } textDirection = Directionality.of(context); + + widget.selectionLogic.onDayTapped(widget.selection.earliest); } @override