alh_calendar 1.2.0 copy "alh_calendar: ^1.2.0" to clipboard
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 AlhCalendarController that exposes jumpToMonth(DateTime) to programmatically animate AlhCalendar to 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 CalendarMonth assertion 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 violated CalendarMonth's weeks ∈ {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:

  • onPreviousMonth is invoked when the previous month is selected. It can be used to provide explicit feedback to users when a screen reader is enabled.
  • onNextMonth is 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:

  • showFocusedBorder to toggle a focus outline border on header and day cells to improve keyboard navigation (default is false)
  • focusedBorderStyle to 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 pageChangeDuration to change the duration of the animation
    • use pageChangeCurve to update the animation curve of the animation
  • 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 β†’ initialDate
    • minimumMonthDate β†’ disablePreviousMonthFromDate
    • maximumMonthDate β†’ disableNextMonthFromDate
    • minimumDayDate β†’ minSelectableDate
    • maximumDayDate β†’ maxSelectableDate
    • iconPadding β†’ headerPadding
    • enableSixWeeksForEveryMonth β†’ showSixWeeksForEveryMonth

ℹ️ Removed parameters #

  • onReachedMinimumDate
  • onReachedMaximumDate

0.0.1 #

  • New Package containing a calendar-widget, with many ways to customize.
5
likes
150
points
145
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A package for creating a custom calendar-widget. Builder-methods make it possible to design the calendar according to the given situation.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on alh_calendar