alh_calendar 1.2.0
alh_calendar: ^1.2.0 copied to clipboard
A package for creating a custom calendar-widget. Builder-methods make it possible to design the calendar according to the given situation.
Changelog #
1.2.0 #
βοΈ New features #
- Added optional
AlhCalendarControllerthat exposesjumpToMonth(DateTime)to programmatically animateAlhCalendarto a chosen month from outside the widget tree. The currently selected day is cleared after the jump and out-of-range targets are clamped to the calendar's allowed range.
πͺ² Bugfixes #
- Fixed a
CalendarMonthassertion that fired for 28-day months starting on a Monday (e.g. February 2010, 2015, 2021) β those months tile into exactly four weeks, which previously violatedCalendarMonth'sweeks β {5, 6}invariant. The padding logic now loops until the minimum week count is reached.
1.1.1 #
πͺ² Bugfixes #
- Fixed a bug where the calendar was not updating correctly when the initial, disablePreviousMonthFromDate or disableNextMonthFromDate date was changed.
- Fixed focus issues for day cells and month navigation buttons when VoiceOver is active.
βΏοΈ Added two new accessibility parameters:
onPreviousMonthis invoked when the previous month is selected. It can be used to provide explicit feedback to users when a screen reader is enabled.onNextMonthis invoked when the next month is selected. It can be used to provide explicit feedback to users when a screen reader is enabled.
1.1.0 #
βΏοΈ Added two new accessibility parameters:
showFocusedBorderto toggle a focus outline border on header and day cells to improve keyboard navigation (default is false)focusedBorderStyleto customize its thickness and color (default is null)
1.0.1 #
- Updated header icon color to primary when not disabled
1.0.0 #
βοΈ New features #
- added page animation when changing the months
- use
pageChangeDurationto change the duration of the animation - use
pageChangeCurveto update the animation curve of the animation
- use
- added
selectInitialDate- set to false if the initial date should not be selected
- added
iconPadding- before this parameter only set padding to the whole header
- now only the back and forth icons get a padding
π§βπ»Code Refactoring #
- updated the following parameter names
initialDateTimeβinitialDateminimumMonthDateβdisablePreviousMonthFromDatemaximumMonthDateβdisableNextMonthFromDateminimumDayDateβminSelectableDatemaximumDayDateβmaxSelectableDateiconPaddingβheaderPaddingenableSixWeeksForEveryMonthβshowSixWeeksForEveryMonth
βΉοΈ Removed parameters #
onReachedMinimumDateonReachedMaximumDate
0.0.1 #
- New Package containing a calendar-widget, with many ways to customize.