NBCalendar class

Inheritance

Constructors

NBCalendar({CalendarTitleBuilder? titleBuilder, bool showHeader = true, MonthPickerMode monthPickerMode = MonthPickerMode.GRID, MonthAndYear? selectedMonthAndYear, DateTime? selectedDate, Map<Date, int> dayEventIndicator = const {}, Color? eventIndicatorColor, MonthChangedCallBack? onMonthChanged, OnDateSelected? onDateSelected, Map<int, String> weekDayLabels = const {DateTime.monday : 'M', DateTime.tuesday : 'T', DateTime.wednesday : 'W', DateTime.thursday : 'T', DateTime.friday : 'F', DateTime.saturday : 'S', DateTime.sunday : 'S'}, int firstDayOfWeek = DateTime.sunday, bool showInActiveMonthDays = true, bool circleSelectedDay = true, bool swipeToNavigate = true})
const

Properties

circleSelectedDay bool
draw a circle around the selected day default: true
final
dayEventIndicator Map<Date, int>
map of: <day_of_current_month , num_of_related_items>
final
eventIndicatorColor Color?
color of the event indicator. default: primary theme color
final
firstDayOfWeek int
specify the first day of week: DateTime.monday / DateTime.tuesday / ... / DateTime.sunday default: DateTime.sunday
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
monthPickerMode MonthPickerMode
switch between two different UIs for month picker (simple view & grid view) default: grid view
final
onDateSelected OnDateSelected?
callback for date-selected event
final
onMonthChanged MonthChangedCallBack?
callback for month-changed event
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDate DateTime?
selected date default: today
final
selectedMonthAndYear MonthAndYear?
current month & year default: current month
final
showHeader bool
whether to show the calendar header default: true
final
showInActiveMonthDays bool
show the days from previous / next month default: true
final
swipeToNavigate bool
swipe left / right to change the month default: true
final
titleBuilder CalendarTitleBuilder?
custom builder for the header title. e.g. changing the date format default: yMMM format
final
weekDayLabels Map<int, String>
label for the weekdays default: M, T, W, T, F, S, S
final

Methods

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