horizontal_weekly_calendar 1.3.0 copy "horizontal_weekly_calendar: ^1.3.0" to clipboard
horizontal_weekly_calendar: ^1.3.0 copied to clipboard

This is a simple horizontal weekly customizable calendar

Changelog #

1.3.0 - 2026-03-29 #

Bug Fixes

  • Fixed DST-related calendar generation bug: Months crossing daylight saving time boundaries (e.g., March, April, October, November) could show missing days, duplicate days, or incomplete weeks. The root cause was using Duration-based date arithmetic which is unreliable across DST transitions. All date calculations now use DateTime constructor arithmetic and UTC-based difference calculations.
  • Fixed table calendar missing days: The table calendar could show fewer days than expected for certain month/starting-day combinations (e.g., March 2026 with Saturday start showing only 27 days).
  • Fixed horizontal weekly calendar day drift: The horizontal weekly calendar with a custom starting day could produce off-by-one day errors near DST boundaries.

Improvements

  • Shared calendar utilities: Extracted common logic (generateWeeks, isSameDay, isDateDisabled, canNavigateToPreviousMonth, canNavigateToNextMonth, buildNavigationIcon) into calendar_utils.dart for consistency and maintainability.
  • Comprehensive test suite: Added 552+ unit and widget tests covering all month/year/starting-day combinations from 2024–2028, DST-prone months, leap years, disabled date logic, navigation boundary enforcement, and all three calendar widgets.
  • Code cleanup: Removed duplicated helper methods across widgets in favor of shared utilities.

1.2.8 - 2026-01-12 #

Features

  • Overlapping Event Support: Events that overlap in time are now displayed side by side instead of stacking.
  • Smart Event Layout: Multiple overlapping events automatically split the available horizontal space equally.
  • Customizable Event Margin: Added overlappingEventMargin property to EventCalendarStyle for controlling spacing between side-by-side events.

1.2.6 - 2025-12-30 #

Features

  • Added minDate and maxDate parameters to all calendar widgets (HorizontalWeeklyCalendar, TableWeeklyCalendar, EventCalendar).
  • Added disabledDayTextStyle and disabledDayColor to HorizontalCalendarStyle for customizing disabled date appearance.
  • Disabled dates before minDate or after maxDate are now non-clickable and visually distinct.
  • Navigation buttons are now disabled when reaching the boundary months defined by minDate/maxDate.

1.2.4 - 2025-10-15 #

Bug Fixes

1.2.3 - 2025-10-15 #

Bug Fixes

1.2.2 - 2025-10-15 #

Bug Fixes

1.2.1 - 2025-10-14 #

Bug Fixes

1.2.0 - 2025-10-14 #

Bug Fixes

  • Fixed a bug where the table calendar would show odd days (like repeated days or missed ones).
  • Added feature You can now add custom horizontal and vertical spacing in the table calendar between days.

1.1.5 - 2025-07-28 #

Bug Fixes

  • Fixed a bug where the table calendar would add an extra space under it.

1.1.4 - 2025-07-28 #

Bug Fixes

  • Fixed a bug where the calendar would show an extra divider at the end and fixed the styling of the event calendar.

1.1.3 - 2025-07-26 #

Bug Fixes

  • Fixed a bug where the event calendar would show broken sometimes.

1.1.2 - 2025-07-26 #

  • Readme Added preview images to the README file for better visualization of the calendar widget.

1.1.1 - 2025-07-26 #

Bug Fixes

  • Fixed a bug where the calendar would not display correctly on certain devices.
  • Improved performance for smoother scrolling and date selection.

Features

  • Added 2 new calendar styles:
    • Table calendar
    • Event calendar

1.0.1 - 2025-04-23 #

Documentation

  • Added a full Documentation to the package

Example project

  • Added an Example to the package

General bug fixes

  • General bug fixes
  • Changed min SDK to 3

1.0.0 - 2025-04-23 #

Features

  • Horizontal Weekly Calendar Widget introduced
  • 4 Built-in Display Styles
    • Standard
    • Outlined
    • Minimal
    • Elevated
  • Flexible date selection mechanism
  • Month navigation controls
  • Comprehensive customization options
    • Color theming
    • Text styling
    • Size adjustments

Core Capabilities

  • Smooth date selection with callbacks
  • Responsive design for multiple screen sizes
  • Null safety implementation
  • Configurable week start day
  • Optional animated transitions

Customization Highlights

  • Fully customizable HorizontalCalendarStyle
  • Support for custom day indicators
  • Adaptable to application themes
  • Configurable month header styles

Technical Specifications

  • Minimum Flutter SDK: 2.12.0
  • Dart null safety compliance
  • Lightweight and performant implementation

Known Limitations

  • Initial release may have minor bugs
  • Limited to weekly calendar view
  • Potential performance considerations on older devices

Breaking Changes:

  • Initial release - No prior version to compare

Note: We welcome community feedback and contributions to improve future versions!

29
likes
160
points
395
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This is a simple horizontal weekly customizable calendar

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on horizontal_weekly_calendar