CalendarMonthItem class
每个月widget
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CalendarMonthItem
Constructors
-
CalendarMonthItem({Key? key, required int daysOfMonth, required int extraDays, required int selectIndex, required Function onSelectDay, Color? selectedColor, double? radius, required int currentYear, required int currentMonth, required Map<
String, dynamic> needIdentifierList, Color? subTitleDisableColor, Color? subTitleEnableColor, Color? subTitleFutureColor, bool showDaysInOtherMonth = false}) -
const
Properties
- currentMonth → int
-
当前展示月份
final
- currentYear → int
-
当前展示年份
final
- daysOfMonth → int
-
当月天数
final
- extraDays → int
-
当前页非当前月的天数
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
needIdentifierList
→ Map<
String, dynamic> -
需标记日期map---key为日期YYYY-mm-dd value为标记描述
final
- onSelectDay → Function
-
返回选中日期几号
final
- radius → double?
-
圆角度
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color?
-
选中色
final
- selectIndex → int
-
默认选中日期所在index
final
- showDaysInOtherMonth → bool
-
是否显示非当月日期
final
- subTitleDisableColor → Color?
-
在当前日期之前的副标题颜色
final
- subTitleEnableColor → Color?
-
当前日期的副标题颜色
final
- subTitleFutureColor → Color?
-
当前日期之后的副标题颜色
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CalendarMonthItemState -
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