MonthPageView<T> class

翻页日历

Create by JsonYe597232387@qq.com on 2019/12

Inheritance

Constructors

MonthPageView(MonthOption<T> option, {Key? key, ValueChanged<DateMonth>? onMonthChange, BuildMark<T>? buildMark, EdgeInsets padding = EdgeInsets.zero, Color? color = Colors.white, double? width, double? height, OnDaySelected<T>? onDaySelected, bool showWeekHead = true, BuildWeekHead? buildWeekHead, Axis scrollDirection = Axis.horizontal, bool pageSnapping = true, ValueChanged<MonthPageController<T>>? onCreated, OnContinuousSelectListen? onContinuousSelectListen, bool showMonthHead = true, BuildWithMonth? buildMonthHead, Color? weekHeadColor = Colors.white, Color? monthHeadColor = Colors.white, CalendarLocaleType? localeType = CalendarLocaleType.zh, ValueChanged<List<DateDay>>? onMultipleSelectListen, VoidCallback? onClear})
const

Properties

buildMark BuildMark<T>?
自定义构建标记
final
buildMonthHead BuildWithMonth?
构建月视图头部
final
buildWeekHead BuildWeekHead?
构建星期头部
final
color Color?
面板颜色
final
hashCode int
The hash code for this object.
no setterinherited
height double?
日历面板宽度,默认屏宽的 6/7
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
localeType CalendarLocaleType?
国际化语言类型
final
monthHeadColor Color?
月视图头部背景色
final
onClear VoidCallback?
final
onContinuousSelectListen OnContinuousSelectListen?
连选监听
final
onCreated ValueChanged<MonthPageController<T>>?
创建后回调
final
onDaySelected OnDaySelected<T>?
点击事件
final
onMonthChange ValueChanged<DateMonth>?
月份滑动改变
final
onMultipleSelectListen ValueChanged<List<DateDay>>?
多选监听
final
option MonthOption<T>
配置参数
final
padding EdgeInsets
边距
final
pageSnapping bool
是否可以滑动翻页
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
滚动方向
final
showMonthHead bool
是否显示月视图头部
final
showWeekHead bool
显示星期头部
final
weekHeadColor Color?
星期头部背景色
final
width double?
日历面板宽度,默认屏宽
final

Methods

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