appcraft_ui_calendar_flutter 0.2.2 copy "appcraft_ui_calendar_flutter: ^0.2.2" to clipboard
appcraft_ui_calendar_flutter: ^0.2.2 copied to clipboard

Customizable Flutter calendar widget with single, range and multi date selection, theming, time picker and multiple display modes.

Changelog #

0.2.2 #

Changed #

  • Translated documentation and code comments to English (README.md, CHANGELOG.md, doc-comments and inline comments) for pub.dev. Functional Russian localization strings (ACLocalizationRu) are unchanged.

0.2.1 #

Added #

  • Factory constructor ACDayMonthPosition.forDay(day, monthDate) for determining a day's position relative to the displayed month (logic extracted from ACMonthWidget)

0.2.0 #

Added #

  • Optional ACCalendarThemeData? theme parameter in root widgets (ACCalendarWidget, ACPagesCalendarWidget, ACCalendarScreen) is now propagated to child widgets
  • ACCalendarThemeData? theme parameter in ACRawCalendarWidget and ACRawPagesCalendarWidget for passing the theme directly without ThemeExtension
  • ACDayThemeData? dayTheme parameter in ACMonthWidget, ACTitledMonthWidget and ACCalendarDayWidget for fine-grained overriding of the day theme
  • Theme resolution priority: widget parameter > ThemeExtension > default values
  • dayBuilder parameter in calendar widgets for custom day cell building
  • monthBuilder parameter in ACPagesCalendarWidget / ACRawPagesCalendarWidget for fully replacing the month widget
  • monthLayout parameter for a fixed month grid layout
  • monthHeight parameter for a fixed month grid height
  • monthBuilder parameter in ACCalendarWidget / ACRawCalendarWidget / ACCalendarScreen for fully replacing the month widget in the scroll calendar
  • monthLayoutBuilder parameter — a month layout callback for the scroll calendar (different months — different layouts)
  • monthHeightBuilder parameter — a month height callback for the scroll calendar
  • weekWidget parameter for replacing the default ACWeekWidget with a custom weekday row widget
  • headerWidget parameter for replacing the default ACPagesCalendarHeader with a custom header

0.1.1 #

  • Fixed all dart analyze warnings (deprecated lint rules, import sorting)
  • Added an entrypoint for performance measurement (example/lib/main_perf.dart)

0.1.0 #

Breaking Changes #

  • ACCalendarTheme (InheritedWidget) replaced by ACCalendarThemeData (plain data class) + ACCalendarThemeExtension (ThemeExtension)
  • Fixed typos: arrowRoateDuration -> arrowRotateDuration, middleSelectedBackgroudColor -> middleSelectedBackgroundColor
  • ACCalendarThemeData is now abstract; use concrete ACLightCalendarThemeData instead of ACCalendarThemeData(...) directly
  • Use ACCalendarThemeExtension(data: ACLightCalendarThemeData(...)) in ThemeData.extensions
  • Static lerpTheme() methods in sub-theme abstract classes replaced with instance lerp() methods

Added #

  • ACCalendarThemeExtension class wrapping ACCalendarThemeData as a ThemeExtension
  • Theme is passed through ThemeData(extensions: [ACCalendarThemeExtension(data: ACCalendarThemeData(...))])
  • ACCalendarThemeExtension.of(context) method for obtaining theme from context
  • copyWith() and lerp() methods for all sub-theme classes
  • backgroundColor property in ACCalendarThemeData
  • actionTextColor property in ACMonthPickerThemeData
  • Doc-comments for all public APIs

Changed #

  • Simplified project structure: 7 -> 3 nesting levels from lib/
  • All widgets moved to flat structure lib/src/widgets/
  • Removed 17 intermediate barrel files
  • Hard-coded colors in widgets replaced with theme reads
  • Removed usage of deprecated scaffoldBackgroundColor

Fixed #

  • Fixed bugs in copyWith() for 5 sub-theme classes (values were being reset instead of preserved)

0.0.1 #

  • Initial version of the calendar library
1
likes
160
points
74
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Customizable Flutter calendar widget with single, range and multi date selection, theming, time picker and multiple display modes.

Repository (GitHub)
View/report issues

Topics

#calendar #date-picker #datetime #widget #ui

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on appcraft_ui_calendar_flutter