UnifiedDateRangeField class
Date range using UnifiedBaseTextField + showUnifiedFieldsDatePickerRange.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- UnifiedDateRangeField
Constructors
-
UnifiedDateRangeField({Key? key, UnifiedInputDecoration? decoration, UnifiedInputDecorationSet? decorationSet, UnifiedInputBrightness? brightness, UnifiedInputPicker<
DateTimeRange< ? binding, UnifiedDateRangeFieldController? fieldController, DateTimeRange<DateTime> >DateTime> ? rangeValue, TextEditingController? controller, String? validator(String value)?, ValueChanged<DateTimeRange< ? onRangeChanged, DateTime? min, DateTime? max, bool showCalendarKindToggle = true, TextAlign textAlign = TextAlign.start, String? label, String? placeholder, bool isRequired = false, bool isDisabled = false, bool locked = false, TextStyle? style, UnifiedInputDatePickerStyle? datePickerStyle, UnifiedFieldsCalendarKind initialCalendarKind = UnifiedFieldsCalendarKind.gregorian, UnifiedFieldsDateFormatStyle? dateFormatStyle})DateTime> ?> -
Creates a date-range field.
const
Properties
-
binding
→ UnifiedInputPicker<
DateTimeRange< ?DateTime> > -
Optional external state binding.
final
- brightness → UnifiedInputBrightness?
-
Override Theme brightness for the unified palette.
final
- controller → TextEditingController?
-
External TextEditingController for the displayed text.
final
- dateFormatStyle → UnifiedFieldsDateFormatStyle?
-
Gregorian / Shamsi display patterns; overrides UnifiedInputThemeData.dateFormatStyle.
final
- datePickerStyle → UnifiedInputDatePickerStyle?
-
Picker sheet chrome; merged with UnifiedInputThemeData.datePickerStyle.
final
- decoration → UnifiedInputDecoration?
-
Visual chrome.
final
- decorationSet → UnifiedInputDecorationSet?
-
Per-state decorations (focus, error, valid, locked, disabled, …).
final
- fieldController → UnifiedDateRangeFieldController?
-
Preferred imperative handle (UnifiedDateRangeFieldController.openPicker, validate, focus).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialCalendarKind → UnifiedFieldsCalendarKind
-
Calendar kind for digit localization and Persian
textStylePersian.final - isDisabled → bool
-
When true, greys out the label and shows a forbid suffix icon.
final
- isRequired → bool
-
Whether the field is required. Overrides UnifiedInputDecoration.requiredField when set.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
Field label. Overrides UnifiedInputDecoration.label when set.
final
- locked → bool
-
When true, greys out the field and shows a lock suffix icon.
final
- max → DateTime?
-
Latest allowed date.
final
- min → DateTime?
-
Earliest allowed date.
final
-
onRangeChanged
→ ValueChanged<
DateTimeRange< ?DateTime> ?> -
Called when the user picks a range.
final
- placeholder → String?
-
Hint text shown when empty. Overrides UnifiedInputDecoration.placeholder when set.
final
-
rangeValue
→ DateTimeRange<
DateTime> ? -
Direct value when not using binding or fieldController.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCalendarKindToggle → bool
-
When false, the picker sheet hides the Gregorian / Shamsi switch.
final
- style → TextStyle?
-
Value text style; overrides theme UnifiedInputFieldDefaults.textStyle when set.
final
- textAlign → TextAlign
-
Text alignment.
final
- validator → String? Function(String value)?
-
Synchronous validator on the displayed text.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< UnifiedDateRangeField> -
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