AlhCalendar class

Inheritance

Constructors

AlhCalendar({required DayBuilder dayBuilder, required HeaderTitleBuilder headerBuilder, required Widget headerLeading, required Widget headerTrailing, required DayOfWeekBuilder dayOfWeekBuilder, required Map<DayOfWeek, String> daysOfWeek, DateTime? initialDate, DateTime? disableNextMonthFromDate, DateTime? disablePreviousMonthFromDate, DateTime? minSelectableDate, DateTime? maxSelectableDate, ValueChanged<DateTime>? onMonthChanged, ValueChanged<DateTime>? onDayChanged, EdgeInsets headerPadding = const EdgeInsets.symmetric(horizontal: 3.0), EdgeInsets iconPadding = const EdgeInsets.all(8), Duration pageChangeDuration = const Duration(milliseconds: 400), Curve pageChangeCurve = Curves.easeInOut, bool enableHorizontalSwipe = true, bool showSixWeeksForEveryMonth = true, bool disableTapOnOutOfRange = true, bool enableJumpToOtherMonth = true, bool selectInitialDate = true, Key? key})
const

Properties

dayBuilder DayBuilder
Custom builder for DayCalendarCells.
final
dayOfWeekBuilder DayOfWeekBuilder
Custom builder for DayOfWeekCalendarCells.
final
daysOfWeek Map<DayOfWeek, String>
needs a Map of <DayOfWeek, String> to fill DayOfWeekCalendarCells
final
disableNextMonthFromDate DateTime?
The maximum selectable month for the calendar.
final
disablePreviousMonthFromDate DateTime?
The minimum selectable month for the calendar.
final
disableTapOnOutOfRange bool
If true days out of range can't be tapped
final
enableHorizontalSwipe bool
Flag if horizontal scrolling in calendar is enabled.
final
enableJumpToOtherMonth bool
Enables changing the month when a day outside of current month is tapped.
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder HeaderTitleBuilder
Custom builder for the headerTitle.
final
headerLeading Widget
custom widget that is left of header
final
headerPadding EdgeInsets
Sets the padding around header title and icons.
final
headerTrailing Widget
custom widget that is right of header
final
iconPadding EdgeInsets
Sets the padding around both headerIcons.
final
initialDate DateTime?
Defines initial Time, if null than DateTime.now()
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxSelectableDate DateTime?
Sets the maximum day within the selectable month range.
final
minSelectableDate DateTime?
Sets the minimum day within the selectable month range.
final
onDayChanged ValueChanged<DateTime>?
Callback once day is changed
final
onMonthChanged ValueChanged<DateTime>?
Callback once month is changed
final
pageChangeCurve Curve
Curve for the page change animation.
final
pageChangeDuration Duration
Duration for the page change animation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectInitialDate bool
If false the initialDate won´t be selected.
final
showSixWeeksForEveryMonth bool
Forces Table to have 6 Rows, even when month would fit in 5.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<AlhCalendar>
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}) 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