asx_calendar library
Classes
-
AsxCalendar<
T> - Highly customizable, feature-packed Flutter calendar with gestures, animations and multiple formats.
- AsxCalendarBase
-
CalendarBuilders<
T> -
Class containing all custom builders for
TableCalendar
. - CalendarStyle
-
Class containing styling and configuration for
TableCalendar
's content. - DaysOfWeekStyle
-
Class containing styling for
TableCalendar
's days of week panel. - HeaderStyle
-
Class containing styling and configuration of
TableCalendar
's header. - PositionedOffset
-
Helper class containing data for internal
Positioned
widget.
Enums
- AvailableGestures
- Gestures available for the calendar.
- StartingDayOfWeek
- Days of the week that the calendar can start with.
Functions
-
getWeekdayNumber(
StartingDayOfWeek weekday) → int -
Returns a numerical value associated with given
weekday
. -
isSameDay(
DateTime? a, DateTime? b) → bool -
Checks if two DateTime objects are the same day.
Returns
false
if either of them is null. -
normalizeDate(
DateTime date) → DateTime -
Returns
date
in UTC format, without its time part.
Typedefs
- DayBuilder = Widget? Function(BuildContext context, DateTime day)
-
Signature for a function that creates a widget for a given
day
. - FocusedDayBuilder = Widget? Function(BuildContext context, DateTime day, DateTime focusedDay)
-
Signature for a function that creates a widget for a given
day
. Additionally, contains the currently focused day. - HighlightBuilder = Widget? Function(BuildContext context, DateTime day, bool isWithinRange)
-
Signature for a function that creates a background highlight for a given
day
. - OnDaySelected = void Function(DateTime selectedDay, DateTime focusedDay)
-
Signature for
onDaySelected
callback. Contains the selected day and focused day. - TextFormatter = String Function(DateTime date, dynamic locale)
-
Signature for a function returning text that can be localized and formatted with
DateFormat
.