SimpleVerticalCalendar class Null safety

SimpleVerticalCalendar is the widget for scrollable vertical calendar that is similar to the one in AirBnB.

This widget is highly customizable where user can style different part of the widget according to their like. using this widget user can specify: startDate, endDate, numOfMonth, headerStyle, dayStyle, dayOfWeekHeaderStyle, dayOfWeek.

SimpleVerticalCalendar(
    numOfMonth: 6,
    headerStyle: HeaderStyle(
        titleTextStyle: TextStyle(
            color: Colors.black,
            fontSize: 20,
            fontWeight: FontWeight.bold,
        ),
        textAlgin: TextAlign.left,
        monthFormat: MonthFormats.FULL,
    ),
    dayOfWeekHeaderStyle: DayOfWeekHeaderStyle(),
    dayStyle: DayHeaderStyle(
        textColor: Colors.black,
    ),
    onDateTap: (start, end) {
        print(start);
        print(end);
    },
),
Inheritance

Constructors

SimpleVerticalCalendar({DateTime? startDate, DateTime? endDate, int numOfMonth = 12, HeaderStyle headerStyle = const HeaderStyle(), DayHeaderStyle dayStyle = const DayHeaderStyle(), void onDateTap(DateTime startDate, DateTime? endDate)?, DayOfWeekHeaderStyle dayOfWeekHeaderStyle = const DayOfWeekHeaderStyle(), CalendarOptions calendarOption = CalendarOptions.RANGE_SELECTION, List<String> dayOfWeek = const ["M", "T", "W", "T", "F", "S", "S"]})

Properties

calendarOption CalendarOptions
calendarOption pick your option between RANGE, SINGLE_SELECTION
final
dayOfWeek List<String>
dayOfWeek is a list of String that display in text for your Day of Week Widget.
final
dayOfWeekHeaderStyle DayOfWeekHeaderStyle
Styling your Day of the week widget using DayOfWeekHeaderStyle.
final
dayStyle DayHeaderStyle
Styling your Day widget using DayHeaderStyle.
final
endDate DateTime?
the default selected end date when initialize the calendar
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
headerStyle HeaderStyle
Styling your Month Header widget using HeaderStyle.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
numOfMonth int
Number of Month to display in the calendar.
final
onDateTap → (void Function?(DateTime startDate, DateTime? endDate)?)
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
startDate DateTime?
the default selected start date when initialize the calendar
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _VerticalCalendarState
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtualinherited