CalendarControllerProvider class

CalendarController is a controller for the Calendar UI.

Copied from CalendarController.

Constructors

CalendarControllerProvider({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)?})
CalendarController is a controller for the Calendar UI.

Properties

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

Methods

createElement() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideWith(CalendarController create()) → Override
runNotifierBuild(covariant CalendarController notifier) → TableCalendar
toString() String
A string representation of this object.
inherited

Operators

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