legacy_calendar
library
Classes
CalendarDayViewTab
A tab that displays a single day in the calendar.
CalendarMonthEvent
Represents a single event displayed on the calendar month grid.
This is the public facing event model for the library.
CalendarMonthViewTab
A tab that displays a single month in the calendar.
CalendarToolbar
A customizable toolbar for the calendar, providing navigation, refresh, and template selection.
CalendarWeekViewTab
A tab that displays a single week in the calendar.
EventPlacement
Represents the placement of an event within the calendar grid.
EventRenderer
Helper class to calculate the placement of events within a calendar week.
InternalCalendarEvent
Internal event model used for rendering logic within the calendar grid.
It's a private class to avoid exposing internal details to the library user.
LegacyCalendar
A widget that displays a calendar with different views (month, week, day).
MonthGridCalendar
A widget that displays a monthly calendar grid with events.
Enums
CalendarView
An enum for the different views of the calendar.
Functions
getContrastingTextColor (Color backgroundColor )
→ Color
Calculates a contrasting text color (black or white) for a given background color.
This is used to ensure text is readable on a colored background.
isSameDay (DateTime a , DateTime b )
→ bool
Utility to compare dates by year, month, day.
parseColorHex (String ? hexString , Color defaultColor )
→ Color
Parses a hexadecimal color string into a Color object.
Supports 3-digit and 6-digit hex codes, with or without a leading '#'.
Returns defaultColor
if parsing fails or the string is null/empty.