From 5f56dae6f5f29ea91769860e8428791c26b4afd7 Mon Sep 17 00:00:00 2001 From: Gianluca Bettega Date: Mon, 16 Dec 2024 15:24:42 -0300 Subject: [PATCH] 6.0.1 --- CHANGELOG.md | 3 +++ example/lib/main.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21ca35b..784c3db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 6.0.1 - 2024-12-16 +- Improved sample + ## 6.0.0 - 2024-12-14 - Added `PickerActionBarSettings` to handle the action bar settings of the dialog. - [Breaking] `confirmWidget`, `cancelWidget`, `customDivider` are now on the `PickerActionBarSettings` class. diff --git a/example/lib/main.dart b/example/lib/main.dart index 5668a3c..47cbd63 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -129,7 +129,7 @@ class _MyAppState extends State { context: contexto, firstDate: DateTime(DateTime.now().year - 5, 5), lastDate: DateTime(DateTime.now().year + 8, 9), - initialDate: selectedDate ?? widget.initialDate, + initialDate: DateTime(selectedYear ?? DateTime.now().year), selectableYearPredicate: (int year) => year.isEven, ).then((int? year) { if (year != null) { diff --git a/pubspec.yaml b/pubspec.yaml index 0888a53..16d1a6b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: month_picker_dialog description: Internationalized dialog for picking a single month from an infinite list of years. -version: 6.0.0 +version: 6.0.1 homepage: https://github.com/hmkrivoj/month_picker_dialog environment: