XBCalendarHms class

Inheritance

Constructors

XBCalendarHms({required ValueChanged<List<DateTime>> onDone, Key? key, XBValueGetter<bool, List<DateTime>>? onWillDone, ValueChanged<DateTime>? onMonthChange, VoidCallback? onCancel, String? title, String? doneBtnText, DateTime? minDateTime, DateTime? maxDateTime, DateTime? minEnableDateTime, DateTime? maxEnableDateTime, List<DateTime>? selectedDates, String yearUnit = "年", String monthUnit = "月", List<String>? weekDays, XBCalendarDisplay? display, List<DateTime>? initMarkDates, Stream<XBCalendarStreamData>? dataStream})

Properties

dataStream Stream<XBCalendarStreamData>?
更新数据的流
finalinherited
display XBCalendarDisplay?
weekday的显示
finalinherited
doneBtnText String?
确定按钮的文字
finalinherited
donePaddingTop double
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
initMarkDates List<DateTime>?
有标记的日期
finalinherited
isSingle bool
单选
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxDateTime DateTime?
展示的日期范围:最大的日期,有效部分只到月份
finalinherited
maxEnableDateTime DateTime?
可以选择的最大日期
finalinherited
minDateTime DateTime?
展示的日期范围:最小的日期,有效部分只到月份
finalinherited
minEnableDateTime DateTime?
可以选择的最小日期
finalinherited
monthUnit String
月的单位
finalinherited
onCancel VoidCallback?
取消回调
finalinherited
onDone ValueChanged<List<DateTime>>
选择完成回调
finalinherited
onMonthChange ValueChanged<DateTime>?
滚动导致月份改变回调
finalinherited
onWillDone → XBValueGetter<bool, List<DateTime>>?
即将完成回调
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDates List<DateTime>?
选择的日期
finalinherited
selectedStyle TextStyle
no setter
title String?
顶部标题
finalinherited
wantKeepAlive bool
保持页面状态
no setterinherited
weekDays List<String>?
weekday的显示
finalinherited
yearUnit String
年的单位
finalinherited

Methods

buildWidget(XBCalendarVM vm, BuildContext context) Widget
构建主体
inherited
castVM(XBCalendarVM vm) XBCalendarHmsVM
chooseBtn({required String text, required VoidCallback onPrevious, required VoidCallback onNext, MainAxisAlignment? mainAxisAlignment}) Widget
inherited
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → XBWidgetState<XBVM>
Creates the mutable state for this widget at a given location in the tree.
inherited
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
generateVM(BuildContext context) XBCalendarHmsVM
生成vm
override
hms(XBCalendarVM vm) Widget
override
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, int wrapWidth = 65}) 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