CalendarController class

CalendarController is a controller for the Calendar UI.

Annotations
  • @riverpod

Constructors

CalendarController()

Properties

availableCalendarFormats Map<CalendarFormat, String>
latefinalinherited
availableGestures ↔ AvailableGestures
latefinalinherited
calendarBuilders ↔ CalendarBuilders
latefinalinherited
calendarFormat ↔ CalendarFormat
latefinalinherited
calendarStyle ↔ CalendarStyle
latefinalinherited
currentDay DateTime?
latefinalinherited
dayHitTestBehavior HitTestBehavior
latefinalinherited
daysOfWeekHeight double
latefinalinherited
daysOfWeekStyle ↔ DaysOfWeekStyle
latefinalinherited
daysOfWeekVisible bool
latefinalinherited
enabledDayPredicate bool Function(DateTime)?
latefinalinherited
eventLoader List Function(DateTime)?
latefinalinherited
firstDay DateTime
latefinalinherited
focusedDay DateTime
latefinalinherited
formatAnimationCurve Curve
latefinalinherited
formatAnimationDuration Duration
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
headerStyle ↔ HeaderStyle
latefinalinherited
headerVisible bool
latefinalinherited
holidayPredicate bool Function(DateTime)?
latefinalinherited
lastDay DateTime
latefinalinherited
locale ↔ dynamic
latefinalinherited
onCalendarCreated ↔ void Function(PageController)?
latefinalinherited
onDayLongPressed ↔ void Function(DateTime, DateTime)?
latefinalinherited
onDaySelected ↔ void Function(DateTime, DateTime)?
latefinalinherited
onDisabledDayLongPressed ↔ void Function(DateTime)?
latefinalinherited
onDisabledDayTapped ↔ void Function(DateTime)?
latefinalinherited
onFormatChanged ↔ void Function(CalendarFormat)?
latefinalinherited
onHeaderLongPressed ↔ void Function(DateTime)?
latefinalinherited
onHeaderTapped ↔ void Function(DateTime)?
latefinalinherited
onPageChanged ↔ void Function(DateTime)?
latefinalinherited
onRangeSelected ↔ void Function(DateTime?, DateTime?, DateTime)?
latefinalinherited
pageAnimationCurve Curve
latefinalinherited
pageAnimationDuration Duration
latefinalinherited
pageAnimationEnabled bool
latefinalinherited
pageJumpingEnabled bool
latefinalinherited
rangeEndDay DateTime?
latefinalinherited
rangeSelectionMode ↔ RangeSelectionMode
latefinalinherited
rangeStartDay DateTime?
latefinalinherited
rowHeight double
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDayPredicate bool Function(DateTime)?
latefinalinherited
shouldFillViewport bool
latefinalinherited
simpleSwipeConfig ↔ SimpleSwipeConfig
latefinalinherited
sixWeekMonthsEnforced bool
latefinalinherited
startingDayOfWeek ↔ StartingDayOfWeek
latefinalinherited
weekendDays List<int>
latefinalinherited
weekNumbersVisible bool
latefinalinherited

Methods

build({required DateTime focusedDay, required DateTime firstDay, required DateTime lastDay, DateTime? currentDay, dynamic locale, DateTime? rangeStartDay, DateTime? rangeEndDay, List<int> weekendDays = const [DateTime.saturday, DateTime.sunday], CalendarFormat calendarFormat = CalendarFormat.month, Map<CalendarFormat, String> availableCalendarFormats = const {CalendarFormat.month : 'Month', CalendarFormat.twoWeeks : '2 weeks', CalendarFormat.week : 'Week'}, bool headerVisible = true, bool daysOfWeekVisible = true, bool pageJumpingEnabled = false, bool pageAnimationEnabled = true, bool sixWeekMonthsEnforced = false, bool shouldFillViewport = false, bool weekNumbersVisible = false, double rowHeight = 52.0, double daysOfWeekHeight = 16.0, Duration formatAnimationDuration = const Duration(milliseconds: 200), Curve formatAnimationCurve = Curves.linear, Duration pageAnimationDuration = const Duration(milliseconds: 300), Curve pageAnimationCurve = Curves.easeOut, StartingDayOfWeek startingDayOfWeek = StartingDayOfWeek.sunday, HitTestBehavior dayHitTestBehavior = HitTestBehavior.opaque, AvailableGestures availableGestures = AvailableGestures.all, SimpleSwipeConfig simpleSwipeConfig = const SimpleSwipeConfig(verticalThreshold: 25.0, swipeDetectionBehavior: SwipeDetectionBehavior.continuousDistinct), HeaderStyle headerStyle = const HeaderStyle(), DaysOfWeekStyle daysOfWeekStyle = const DaysOfWeekStyle(), CalendarStyle calendarStyle = const CalendarStyle(), CalendarBuilders calendarBuilders = const CalendarBuilders(), RangeSelectionMode rangeSelectionMode = RangeSelectionMode.toggledOff, List eventLoader(DateTime)?, bool enabledDayPredicate(DateTime)?, bool selectedDayPredicate(DateTime)?, bool holidayPredicate(DateTime)?, void onRangeSelected(DateTime?, DateTime?, DateTime)?, void onDaySelected(DateTime, DateTime)?, void onDayLongPressed(DateTime, DateTime)?, void onDisabledDayTapped(DateTime)?, void onDisabledDayLongPressed(DateTime)?, void onHeaderTapped(DateTime)?, void onHeaderLongPressed(DateTime)?, void onPageChanged(DateTime)?, void onFormatChanged(CalendarFormat)?, void onCalendarCreated(PageController)?}) → TableCalendar
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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