TableWeeklyCalendar class

A widget that displays a table-based weekly calendar with customizable styles, focus dates, and navigation.

Inheritance

Constructors

TableWeeklyCalendar({Key? key, required DateTime initialDate, required DateTime selectedDate, required ValueChanged<DateTime> onDateSelected, required ValueChanged<DateTime> onMonthChanged, ValueChanged<DateTime>? onVisibleDateTapped, HorizontalCalendarStyle calendarStyle = const HorizontalCalendarStyle(), Weekday? startingDay, List<FocusDate> focusDates = const [], bool showMonthHeader = true, IconData? previousMonthIcon = Icons.chevron_left, IconData? nextMonthIcon = Icons.chevron_right, Color? iconColor, bool enableAnimations = true, TableWeeklyCalendarHeaderBuilder? headerBuilder, bool useFocusDateColor = true, EdgeInsetsGeometry tablePadding = const EdgeInsets.symmetric(horizontal: 0, vertical: 0), double horizontalSpacing = 0.0, double verticalSpacing = 0.0})
Creates a TableWeeklyCalendar widget.
const

Properties

calendarStyle HorizontalCalendarStyle
The style configuration for the calendar appearance.
final
enableAnimations bool
Whether to enable animations when changing months or selecting dates.
final
focusDates List<FocusDate>
A list of dates to be focused or highlighted in the calendar.
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder TableWeeklyCalendarHeaderBuilder?
A builder for customizing the header widget.
final
horizontalSpacing double
The horizontal spacing between day cells in the calendar.
final
iconColor Color?
The color of the navigation icons.
final
initialDate DateTime
The initial date to display when the calendar is first shown.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nextMonthIcon IconData?
The icon to use for navigating to the next month.
final
onDateSelected ValueChanged<DateTime>
Called when a date is selected by the user.
final
onMonthChanged ValueChanged<DateTime>
Called when the displayed month is changed.
final
onVisibleDateTapped ValueChanged<DateTime>?
Called when a visible day that is NOT in the current month is tapped.
final
previousMonthIcon IconData?
The icon to use for navigating to the previous month.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDate DateTime
The currently selected date in the calendar.
final
showMonthHeader bool
Whether to show the month header above the calendar.
final
startingDay Weekday?
The day of the week to start the calendar.
final
tablePadding EdgeInsetsGeometry
The padding around the calendar table.
final
useFocusDateColor bool
Whether to use the color from the FocusDate for focus dates.
final
verticalSpacing double
The vertical spacing between week rows in the calendar.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<TableWeeklyCalendar>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited