TxCupertinoDatePicker class
日期选择器
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TxCupertinoPicker
- TxCupertinoMonthPicker
- TxCupertinoDatePicker
Constructors
-
TxCupertinoDatePicker.new({required ValueChanged<
DateTime> onDateChanged, Key? key, DateTime? initialDate, DateTime? minimumDate, DateTime? maximumDate, int? minimumYear, int? maximumYear, DatePickerDateOrder? dateOrder, Color? backgroundColor, bool showDayOfWeek = false, double? itemExtent = _kItemExtent, bool? useMagnifier = _kUseMagnifier, double? magnification = _kMagnification, double? squeeze = _kSqueeze, double? diameterRatio = _kDiameterRatio, TextStyle? textStyle, TextStyle? unselectedTextStyle, Color? unselectedColor}) - Constructs an iOS style date picker.
Properties
- backgroundColor → Color?
-
Background color of date picker.
finalinherited
- dateOrder → DatePickerDateOrder?
-
Determines the order of the columns inside CupertinoDatePicker in
CupertinoDatePickerMode.date and CupertinoDatePickerMode.monthYear
mode. When using monthYear mode, both DatePickerDateOrder.dmy and
DatePickerDateOrder.mdy will result in the month|year order.
Defaults to the locale's default date format/order.
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
- maximumYear → int?
-
Maximum year that the picker can be scrolled to in
CupertinoDatePickerMode.date mode. Null if there's no limit.
finalinherited
- minimumValue → DateTime?
-
The minimum selectable date that the picker can settle on.
finalinherited
- minimumYear → int
-
Minimum year that the picker can be scrolled to in
CupertinoDatePickerMode.date mode. Defaults to 1.
finalinherited
-
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
-
finalinherited
- squeeze → double
-
The angular compactness of the children on the wheel.
finalinherited
- textStyle → TextStyle?
-
finalinherited
- unselectedColor → Color?
-
finalinherited
- unselectedTextStyle → TextStyle?
-
finalinherited
- 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