CalendarMonthView class
月份显示widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CalendarMonthView
Constructors
-
CalendarMonthView({Key? key, Map<
String, dynamic> ? dateMap, Color? titleColor, 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 monthPageController})
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
- monthPageController → PageController
-
月份切换pageController
final
- onSelectedDateTime → dynamic Function(DateTime)
-
当前选中日期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
- titleColor → Color?
-
日期文字颜色
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CalendarMonthViewState -
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