RawCalendarView<T> class

Inheritance

Constructors

RawCalendarView.new({Key? key, 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<T> calendarBuilders = const CalendarBuilders(), RangeSelectionMode rangeSelectionMode = RangeSelectionMode.toggledOff, List<T> eventLoader(DateTime day)?, bool enabledDayPredicate(DateTime day)?, bool selectedDayPredicate(DateTime day)?, bool holidayPredicate(DateTime day)?, OnRangeSelected? onRangeSelected, OnDaySelected? onDaySelected, OnDaySelected? onDayLongPressed, void onDisabledDayTapped(DateTime day)?, void onDisabledDayLongPressed(DateTime day)?, void onHeaderTapped(DateTime focusedDay)?, void onHeaderLongPressed(DateTime focusedDay)?, void onPageChanged(DateTime focusedDay)?, void onFormatChanged(CalendarFormat format)?, void onCalendarCreated(PageController pageController)?})

Properties

availableCalendarFormats Map<CalendarFormat, String>
final
availableGestures AvailableGestures
final
calendarBuilders CalendarBuilders<T>
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 day)?
final
eventLoader List<T> Function(DateTime day)?
final
firstDay DateTime
final
focusedDay DateTime
final
formatAnimationCurve Curve
final
formatAnimationDuration Duration
final
hashCode int
The hash code for this object.
no setterinherited
headerStyle HeaderStyle
final
headerVisible bool
final
holidayPredicate bool Function(DateTime day)?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lastDay DateTime
final
locale → dynamic
final
onCalendarCreated → void Function(PageController pageController)?
final
onDayLongPressed OnDaySelected?
final
onDaySelected OnDaySelected?
final
onDisabledDayLongPressed → void Function(DateTime day)?
final
onDisabledDayTapped → void Function(DateTime day)?
final
onFormatChanged → void Function(CalendarFormat format)?
final
onHeaderLongPressed → void Function(DateTime focusedDay)?
final
onHeaderTapped → void Function(DateTime focusedDay)?
final
onPageChanged → void Function(DateTime focusedDay)?
final
onRangeSelected OnRangeSelected?
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 day)?
final
shouldFillViewport bool
final
simpleSwipeConfig SimpleSwipeConfig
final
sixWeekMonthsEnforced bool
final
startingDayOfWeek StartingDayOfWeek
final
weekendDays List<int>
final
weekNumbersVisible bool
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<RawCalendarView<T>>
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, int wrapWidth = 65}) 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