CupertinoDateRangePicker class

带快捷选择的时间范围选择器

Inheritance

Constructors

CupertinoDateRangePicker.new({required ValueChanged<DateTimeRange<DateTime>?> onChanged, required CupertinoDatePickerMode mode, DateTime? minimumDate, DateTime? maximumDate, Key? key, DateTimeRange<DateTime>? initialDatetimeRange, String? helpText, String? fieldStartHintText, String? fieldEndHintText, List<DateRangeQuickChoice>? quickChoices = const [DateRangeMonthQuickChoice(), DateRangeMonthQuickChoice(value: 6), DateRangeYearQuickChoice()], String? format, DatePickerDateOrder? dateOrder})
const

Properties

dateOrder DatePickerDateOrder?
参考 CupertinoDatePicker.dateOrder
final
fieldEndHintText String?
用于在结束字段中未输入任何文本时提示用户的文本。
final
fieldStartHintText String?
用于在开始字段中未输入任何文本时提示用户的文本。
final
format String?
格式化方法
final
hashCode int
The hash code for this object.
no setterinherited
helpText String?
显示在输入框日期显示输入框底部的帮助文字。
final
initialDatetimeRange DateTimeRange<DateTime>?
日期范围选择器打开时开始的日期范围。
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maximumDate DateTime?
日期范围内允许的最晚日期。
final
minimumDate DateTime?
日期范围内允许的最早日期。
final
mode CupertinoDatePickerMode
选择模式
final
onChanged ValueChanged<DateTimeRange<DateTime>?>
选择器值变动回调
final
quickChoices List<DateRangeQuickChoice>?
快捷选择项
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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