WeekView<T> class

Widget to display week view.

Inheritance

Constructors

WeekView({Key? key, EventController<T>? controller, EventTileBuilder<T>? eventTileBuilder, Duration pageTransitionDuration = const Duration(milliseconds: 300), Curve pageTransitionCurve = Curves.ease, double heightPerMinute = 1, double timeLineOffset = 0, bool showLiveTimeLineInAllDays = false, double? width, DateTime? minDay, DateTime? maxDay, DateTime? initialDay, HourIndicatorSettings? hourIndicatorSettings, DateWidgetBuilder? timeLineBuilder, double? timeLineWidth, HourIndicatorSettings? liveTimeIndicatorSettings, CalendarPageChangeCallBack? onPageChange, WeekPageHeaderBuilder? weekPageHeaderBuilder, EventArranger<T>? eventArranger, double weekTitleHeight = 50, DateWidgetBuilder? weekDayBuilder, Color backgroundColor = Colors.white, double scrollOffset = 0.0, CellTapCallback<T>? onEventTap, DatePressCallback? onDateLongPress, List<WeekDays> weekDays = WeekDays.values, bool showWeekends = true})
Main widget for week view.
const

Properties

backgroundColor Color
Background color of week view page.
final
controller EventController<T>?
Controller for Week view thia will refresh view when user adds or removes event from controller.
final
eventArranger EventArranger<T>?
Arrange events.
final
eventTileBuilder EventTileBuilder<T>?
Builder to build tile for events.
final
hashCode int
The hash code for this object.
no setterinherited
heightPerMinute double
Defines height occupied by one minute of time span. This parameter will be used to calculate total height of Week view.
final
hourIndicatorSettings HourIndicatorSettings?
Settings for hour indicator settings.
final
initialDay DateTime?
Initial week to display in week view.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
liveTimeIndicatorSettings HourIndicatorSettings?
Settings for live time indicator settings.
final
maxDay DateTime?
Maximum day to display in week view.
final
minDay DateTime?
Minimum day to display in week view.
final
onDateLongPress DatePressCallback?
This method will be called when user long press on calendar.
final
onEventTap CellTapCallback<T>?
Called when user taps on event tile.
final
onPageChange CalendarPageChangeCallBack?
Called whenever user changes week.
final
pageTransitionCurve Curve
Transition curve for transition.
final
pageTransitionDuration Duration
duration for page transition while changing the week.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollOffset double
Scroll offset of week view page.
final
showLiveTimeLineInAllDays bool
Flag to show live time indicator in all day or only initialDay
final
showWeekends bool
Show weekends or not
final
timeLineBuilder DateWidgetBuilder?
Builder for timeline.
final
timeLineOffset double
Offset of time line
final
timeLineWidth double?
Width of time line.
final
weekDayBuilder DateWidgetBuilder?
Builder to build week day.
final
weekDays List<WeekDays>
Defines which days should be displayed in one week.
final
weekPageHeaderBuilder WeekPageHeaderBuilder?
Header builder for week page header.
final
weekTitleHeight double
Height of week day title,
final
width double?
Width of week view. If null provided device width will be considered.
final

Methods

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