CalendarWeekView class
周显示widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CalendarWeekView
Constructors
-
CalendarWeekView({Key? key, Map<
String, dynamic> ? dateMap, Color? selectedColor, Color? subTitleDisableColor, Color? subTitleEnableColor, Color? subTitleFutureColor, required dynamic onSelectedDateTime(DateTime), required DateTime currentDateTime, bool showExpandMore = false, required DateTime startDateTime, required DateTime endDateTime, required PageController weekPageController})
Properties
- currentDateTime → DateTime
-
当前日期
final
-
dateMap
→ Map<
String, dynamic> ? -
需标记日期map---key为日期YYYY-mm-dd value为标记描述
final
- endDateTime → DateTime
-
截止日期
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onSelectedDateTime → dynamic Function(DateTime)
-
返回选中的日期
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color?
-
日期选中颜色
final
- showExpandMore → bool
-
是否显示月周切换
final
- startDateTime → DateTime
-
起始日期
final
- subTitleDisableColor → Color?
-
在当前日期之前的副标题颜色
final
- subTitleEnableColor → Color?
-
当前日期的副标题颜色
final
- subTitleFutureColor → Color?
-
当前日期之后的副标题颜色
final
- weekPageController → PageController
-
pageController
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CalendarWeekViewState -
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