SeniorCalendar class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SeniorCalendar
Constructors
-
SeniorCalendar({Key? key, required DateTime firstDay, required DateTime lastDay, required DateTime selectedDay, SeniorCalendarFormat calendarFormat = SeniorCalendarFormat.month, bool sixWeekMonthsEnforced = true, Map<
CalendarFormat, String> availableCalendarFormats = const {CalendarFormat.month : 'Month', CalendarFormat.week : 'Week'}, void onDaySelected(DateTime focusedDay)?, SeniorCalendarStyle? style, bool headButtonActive = true, String? headerText, String? titleDatePattern, String locale = 'pt_BR', bool highlightToday = true, EventList<Event> ? markedDateMap, void onChangeFormat(SeniorCalendarFormat format)?, DateTime? rangeEndDay, DateTime? rangeStartDay, dynamic onRangeSelected(DateTime? start, DateTime? end)?, bool inactiveYesterdays = false, String? bottomText, bool showStrokeTop = false, String? calendarTitle, EdgeInsets? margin, String? dateConnective, void onPageChanged(DateTime focusedDay)?, SeniorCalendarBuilder? calendarBuilders}) -
const
Properties
-
availableCalendarFormats
→ Map<
CalendarFormat, String> -
The available calendar formats
final
- bottomText → String?
-
The calendar's bottom text
final
- calendarBuilders → SeniorCalendarBuilder?
-
final
- calendarFormat → SeniorCalendarFormat
-
The calendar's format
final
- calendarTitle → String?
-
The calendar's title
final
- dateConnective → String?
-
The date connective used in a range mode
final
- firstDay → DateTime
-
The first date available on the calendar
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headButtonActive → bool
-
If true, the header buttons will be active
final
- headerText → String?
-
change the text of the calendar's default header
final
- highlightToday → bool
-
If true, the current day will be highlighted
final
- inactiveYesterdays → bool
-
Disable the days before today
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastDay → DateTime
-
The last date available on the calendar
final
- locale → String
-
change the calendar's default locale
final
- margin → EdgeInsets?
-
The calendar's margin
final
-
markedDateMap
→ EventList<
Event> ? -
List of events for the days to be able to make an appointment on the day
final
- onChangeFormat → (void Function(SeniorCalendarFormat format)?)
-
Callback function executed when the calendar format is changed
final
- onDaySelected → (void Function(DateTime focusedDay)?)
-
Callback function executed when a day is selected
final
- onPageChanged → (void Function(DateTime focusedDay)?)
-
Called whenever currently visible calendar page is changed.
final
- onRangeSelected → (dynamic Function(DateTime? start, DateTime? end)?)
-
Callback function executed when a range is selected
final
- rangeEndDay → DateTime?
-
Last day selected in a range mode
final
- rangeStartDay → DateTime?
-
First day selected in a range mode
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDay → DateTime
-
The selected date on the calendar
final
- showStrokeTop → bool
-
If true, the calendar will show the stroke on the top
final
- sixWeekMonthsEnforced → bool
-
If true, the calendar will always have 6 weeks, even if the month is incomplete
final
- style → SeniorCalendarStyle?
-
The component's style definitions.
final
- titleDatePattern → String?
-
Title data pattern
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SeniorCalendar> -
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
-
pickCalendar(
BuildContext context) → void -
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