From 322e39427eca33eae4ed2cb27dc6bf47c2b85210 Mon Sep 17 00:00:00 2001 From: Neo Liu Date: Mon, 24 Jun 2024 18:00:29 +1000 Subject: [PATCH] release:v1.1.5 --- CHANGELOG.md | 5 +++++ README.md | 6 ++++-- example/pubspec.lock | 6 +++--- lib/src/models/calendar_date_picker2_config.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc17b32..45299dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.1.5] +- refactor: add `isMonthPicker` into `CalendarModePickerTextHandler` +- feat: add `weekdayLabelBuilder` into config +- feat: add `modePickerBuilder` into config + ## [1.1.4] - fix: update README.md diff --git a/README.md b/README.md index 3b5b015..d6846bb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CalendarDatePicker2 -[![Pub Package](https://img.shields.io/badge/pub-v1.1.4-blue)](https://pub.dev/packages/calendar_date_picker2) +[![Pub Package](https://img.shields.io/badge/pub-v1.1.5-blue)](https://pub.dev/packages/calendar_date_picker2) [![Pub Package](https://img.shields.io/badge/flutter-%3E%3D1.17.0-green)](https://flutter.dev/) [![GitHub Repo stars](https://img.shields.io/github/stars/theideasaler/calendar_date_picker2?style=social)](https://github.com/theideasaler/calendar_date_picker2) @@ -45,7 +45,7 @@ Add the following line to `pubspec.yaml`: ```yaml dependencies: -calendar_date_picker2: ^1.1.4 +calendar_date_picker2: ^1.1.5 ``` ### Basic setup @@ -143,6 +143,7 @@ var results = await showCalendarDatePicker2Dialog( | animateToDisplayedMonthDate | bool? | Flag to always animate to the displayedMonthDate | | weekdayLabels | List\? | Custom weekday labels, should starts with Sunday | | weekdayLabelTextStyle | TextStyle? | Custom text style for weekday labels | +| weekdayLabelBuilder | CalendarWeekdayLabelBuilder? | Function to provide full control over weekday label widget | | firstDayOfWeek | int? | Index of the first day of week, where 0 points to Sunday, and 6 points to Saturday. | | lastMonthIcon | Widget? | Custom icon for last month button control | | nextMonthIcon | Widget? | Custom icon for next month button control | @@ -151,6 +152,7 @@ var results = await showCalendarDatePicker2Dialog( | centerAlignModePicker | bool? | Flag to centralize year and month text label in controls | | disableModePicker | bool? | Flag to disable mode picker and hide the toggle icon | | modePickerTextHandler | CalendarModePickerTextHandler? | Function to control mode picker displayed text | +| modePickerBuilder | CalendarModePickerBuilder? | Function to provide full control over mode picker UI | | customModePickerIcon | Widget? | Custom icon for the mode picker button icon | | modePickerTextHandler | CalendarModePickerTextHandler? | Function to control mode picker displayed text | | useAbbrLabelForMonthModePicker | bool? | Use Abbreviation label for month mode picker, only works when month picker is enabled | diff --git a/example/pubspec.lock b/example/pubspec.lock index d71baa6..b209039 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -23,7 +23,7 @@ packages: path: ".." relative: true source: path - version: "1.1.4" + version: "1.1.5" characters: dependency: transitive description: @@ -39,7 +39,7 @@ packages: sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf url: "https://pub.dev" source: hosted - version: "1.1.4" + version: "1.1.5" collection: dependency: transitive description: @@ -55,7 +55,7 @@ packages: sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be url: "https://pub.dev" source: hosted - version: "1.1.4" + version: "1.1.5" fake_async: dependency: transitive description: diff --git a/lib/src/models/calendar_date_picker2_config.dart b/lib/src/models/calendar_date_picker2_config.dart index 9ae5de7..16d83e8 100644 --- a/lib/src/models/calendar_date_picker2_config.dart +++ b/lib/src/models/calendar_date_picker2_config.dart @@ -303,7 +303,7 @@ class CalendarDatePicker2Config { /// Function to control mode picker displayed text final CalendarModePickerTextHandler? modePickerTextHandler; - /// Custom builder for the mode picker widget + /// Function to provide full control over mode picker UI final CalendarModePickerBuilder? modePickerBuilder; /// Whether the range selection can be also made in reverse-chronological order. diff --git a/pubspec.yaml b/pubspec.yaml index 8ec041e..f475519 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: calendar_date_picker2 description: A lightweight and customizable calendar picker based on Flutter CalendarDatePicker, with support for single date picker, range picker and multi picker. -version: 1.1.4 +version: 1.1.5 homepage: https://github.com/theideasaler/calendar_date_picker2 environment: