TxCupertinoTimePicker class

时间选择器

Inheritance
Implementers

Constructors

TxCupertinoTimePicker.new({required ValueChanged<DateTime> onTimeChanged, DateTime? initialTime, TimeOfDay? minimumTime, TimeOfDay? maximumTime, int minuteInterval = 1, bool use24hFormat = true, Key? key, Color? backgroundColor, double? itemExtent = _kItemExtent, bool? useMagnifier = _kUseMagnifier, double? magnification = _kMagnification, double? squeeze = _kSqueeze, double? diameterRatio = _kDiameterRatio, TextStyle? textStyle, TextStyle? unselectedTextStyle, Color? unselectedColor})

Properties

backgroundColor Color?
Background color of date picker.
finalinherited
diameterRatio double
finalinherited
hashCode int
The hash code for this object.
no setterinherited
initialValue DateTime?
The initial date and/or time of the picker. Defaults to the present date and time. The present must conform to the intervals set in minimumValue, maximumValue.
finalinherited
itemExtent double
The uniform height of all children.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
magnification double
The zoomed-in rate of the magnifier, if it is used.
finalinherited
maximumValue DateTime?
The maximum selectable date that the picker can settle on.
finalinherited
minimumValue DateTime?
The minimum selectable date that the picker can settle on.
finalinherited
minuteInterval int
The granularity of the minutes spinner, if it is shown in the current mode. Must be an integer factor of 60.
final
onChanged ValueChanged<DateTime>
Callback called when the selected date and/or time changes. If the new selected DateTime is not valid, or is not in the minimumValue through maximumValue range, this callback will not be called.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDayOfWeek bool
Whether to to show day of week alongside day. Defaults to false.
final
squeeze double
The angular compactness of the children on the wheel.
finalinherited
textStyle TextStyle?
finalinherited
unselectedColor Color?
finalinherited
unselectedTextStyle TextStyle?
finalinherited
use24hFormat bool
Whether to use 24 hour format. Defaults to false.
final
useMagnifier bool
Whether to use the magnifier for the center item of the wheel.
finalinherited

Methods

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