kalender 0.6.0
kalender: ^0.6.0 copied to clipboard
This Flutter package offers a Calendar Widget featuring integrated Day, MultiDay, and Month views. Moreover, it empowers you to tailor the visual aspects of the calendar widget.
0.6.0 #
Breaking changes #
- The
EventsController
is now an abstract class, useDefaultEventsController<T>
instead. - The
ViewConfiguration
no longer contains the configuration forinteraction
andsnapping
. These are now separate classes that are passed directly to theBody
/Header
.
What's new #
- There is a new callback
onTapped
inCalendarCallbacks
.- This is now called when the user taps on an empty space a calendar (Multiday body).
- There is a new callback
onMultiDayTapped
inCalendarCallbacks
.- This is called when the user taps on an empty space in the calendar (Multiday Header / Month body).
- MultiDayBodyConfiguration added
horizontalPadding
this padding is located between events and the edge of day. - There is now a
CalendarInteraction
andCalendarSnapping
class that can be passed to theCalendarBody
/CalendarHeader
as a ValueNotifier. This allows the calendar view to change these behaviors without rebuilding the entire view. CalendarSnapping
now has aeventSnapStrategy
that can be used to define custom snapping behavior when creating new events. #119
Fixes #
Boring stuff #
- Lots of new unit tests that run in multiple timezones to ensure there are no regressions.
- Example directory layout has changed.
- Updated changelog and version to follow Semantic Versioning.
0.5.0 #
Breaking changes: #
Version 0.5.0 has quite a few Breaking changes, there is no easy way to migrate to this version. Here are a few important things that have changed.
-
The CalendarView now takes a
header
CalendarHeader andbody
CalendarBody widgets. You can wrap these widgets in other widgets to style them as seen here -
Event tiles now make use of the Draggable widget provided by flutter. Take a look at the TileComponents for more details on how tiles work now. This opens some interesting possibilities for displaying multiple calendars.
-
The CalendarCallbacks (previously
CalendarEventHandlers
) have been changed so more information is given when an interaction occurs. -
The schedule view has been removed, but will be reimplemented in the future.
What's new #
- Auto scroll/paging (https://github.com/werner-scholtz/kalender/issues/75 && https://github.com/werner-scholtz/kalender/issues/64)
- Calender can now accept Draggable's (https://github.com/werner-scholtz/kalender/issues/48)
- More information for the TileBuilder (https://github.com/werner-scholtz/kalender/issues/83)