appcraft_ui_calendar_flutter 0.2.2
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 fromACMonthWidget)
0.2.0 #
Added #
- Optional
ACCalendarThemeData? themeparameter in root widgets (ACCalendarWidget,ACPagesCalendarWidget,ACCalendarScreen) is now propagated to child widgets ACCalendarThemeData? themeparameter inACRawCalendarWidgetandACRawPagesCalendarWidgetfor passing the theme directly withoutThemeExtensionACDayThemeData? dayThemeparameter inACMonthWidget,ACTitledMonthWidgetandACCalendarDayWidgetfor fine-grained overriding of the day theme- Theme resolution priority: widget parameter >
ThemeExtension> default values dayBuilderparameter in calendar widgets for custom day cell buildingmonthBuilderparameter inACPagesCalendarWidget/ACRawPagesCalendarWidgetfor fully replacing the month widgetmonthLayoutparameter for a fixed month grid layoutmonthHeightparameter for a fixed month grid heightmonthBuilderparameter inACCalendarWidget/ACRawCalendarWidget/ACCalendarScreenfor fully replacing the month widget in the scroll calendarmonthLayoutBuilderparameter — a month layout callback for the scroll calendar (different months — different layouts)monthHeightBuilderparameter — a month height callback for the scroll calendarweekWidgetparameter for replacing the defaultACWeekWidgetwith a custom weekday row widgetheaderWidgetparameter for replacing the defaultACPagesCalendarHeaderwith 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 byACCalendarThemeData(plain data class) +ACCalendarThemeExtension(ThemeExtension)- Fixed typos:
arrowRoateDuration->arrowRotateDuration,middleSelectedBackgroudColor->middleSelectedBackgroundColor ACCalendarThemeDatais now abstract; use concreteACLightCalendarThemeDatainstead ofACCalendarThemeData(...)directly- Use
ACCalendarThemeExtension(data: ACLightCalendarThemeData(...))inThemeData.extensions - Static
lerpTheme()methods in sub-theme abstract classes replaced with instancelerp()methods
Added #
ACCalendarThemeExtensionclass wrappingACCalendarThemeDataas aThemeExtension- Theme is passed through
ThemeData(extensions: [ACCalendarThemeExtension(data: ACCalendarThemeData(...))]) ACCalendarThemeExtension.of(context)method for obtaining theme from contextcopyWith()andlerp()methods for all sub-theme classesbackgroundColorproperty inACCalendarThemeDataactionTextColorproperty inACMonthPickerThemeData- 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