FastDatePicker class

A FastFormField that shows either a Material Design date picker via showDatePicker or a CupertinoDatePicker via showCupertinoModalPopup.

Inheritance
Annotations

Constructors

FastDatePicker({DateTime? initialValue, bool? adaptive, AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction, FormFieldBuilder<DateTime> builder = datePickerBuilder, Map<FastConditionHandler, FastConditionList>? conditions, EdgeInsetsGeometry? contentPadding, InputDecoration? decoration, bool enabled = true, String? helperText, Key? key, String? labelText, required String name, ValueChanged<DateTime?>? onChanged, VoidCallback? onReset, FormFieldSetter<DateTime>? onSaved, void onTouched()?, String? restorationId, FormFieldValidator<DateTime>? validator, Offset? anchorPoint, Color? backgroundColor, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, String? cancelText, String? confirmText, FastDatePickerWidgetBuilder cupertinoErrorBuilder = datePickerErrorBuilder, FastDatePickerWidgetBuilder cupertinoHelperBuilder = datePickerHelperBuilder, FastDatePickerWidgetBuilder cupertinoPrefixBuilder = datePickerPrefixBuilder, DateTime? currentDate, DateFormat? dateFormat, DatePickerDateOrder? dateOrder, TransitionBuilder? dialogBuilder, String? errorFormatText, String? errorInvalidText, String? fieldHintText, String? fieldLabelText, required DateTime firstDate, double height = 216.0, String? helpText, Icon? icon, FastDatePickerIconButtonBuilder iconButtonBuilder = datePickerIconButtonBuilder, DatePickerMode initialDatePickerMode = DatePickerMode.day, DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar, double itemExtent = 32.0, TextInputType? keyboardType, required DateTime lastDate, Locale? locale, int? maximumYear, int minimumYear = 1, int minuteInterval = 1, String modalCancelButtonText = 'Cancel', String modalDoneButtonText = 'Done', CupertinoDatePickerMode mode = CupertinoDatePickerMode.date, void onDatePickerModeChange(DatePickerEntryMode)?, RouteSettings? routeSettings, SelectableDayPredicate? selectableDayPredicate, Widget? selectionOverlayBuilder(BuildContext, {required int columnCount, required int selectedIndex})?, bool showDayOfWeek = false, bool showModalPopup = false, Icon? switchToCalendarEntryModeIcon, Icon? switchToInputEntryModeIcon, FastDatePickerTextBuilder textBuilder = datePickerTextBuilder, TextDirection? textDirection, TextStyle? textStyle, bool use24hFormat = false, bool useRootNavigator = true})

Properties

adaptive bool?
null represents a non-adaptive form field widget
finalinherited
anchorPoint Offset?
final
autovalidateMode AutovalidateMode
Used to enable/disable this form field auto validation and update its error text.
finalinherited
backgroundColor Color?
final
barrierColor Color?
final
barrierDismissible bool
final
barrierLabel String?
final
builder FormFieldBuilder<DateTime>
Function that returns the widget representing this form field.
finalinherited
cancelText String?
final
conditions Map<FastConditionHandler, FastConditionList>?
finalinherited
confirmText String?
final
contentPadding EdgeInsetsGeometry?
finalinherited
cupertinoErrorBuilder FastDatePickerWidgetBuilder
final
cupertinoHelperBuilder FastDatePickerWidgetBuilder
final
cupertinoPrefixBuilder FastDatePickerWidgetBuilder
final
currentDate DateTime?
final
dateFormat → DateFormat?
final
dateOrder DatePickerDateOrder?
final
decoration InputDecoration?
finalinherited
dialogBuilder TransitionBuilder?
final
enabled bool
Whether the form is able to receive user input.
finalinherited
errorBuilder FormFieldErrorBuilder?
Function that returns the widget representing the error to display.
finalinherited
errorFormatText String?
final
errorInvalidText String?
final
fieldHintText String?
final
fieldLabelText String?
final
firstDate DateTime
final
forceErrorText String?
An optional property that forces the FormFieldState into an error state by directly setting the FormFieldState.errorText property without running the validator function.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double
final
helperText String?
finalinherited
helpText String?
final
icon Icon?
final
iconButtonBuilder FastDatePickerIconButtonBuilder
final
initialDatePickerMode DatePickerMode
final
initialEntryMode DatePickerEntryMode
final
initialValue DateTime?
An optional value to initialize the form field to, or null otherwise.
finalinherited
itemExtent double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
final
labelText String?
finalinherited
lastDate DateTime
final
locale Locale?
final
maximumYear int?
final
minimumYear int
final
minuteInterval int
final
modalCancelButtonText String
final
modalDoneButtonText String
final
mode CupertinoDatePickerMode
final
name String
finalinherited
onChanged ValueChanged<DateTime?>?
finalinherited
onDatePickerModeChange → void Function(DatePickerEntryMode)?
final
onReset VoidCallback?
An optional method to call when the form field is reset via FormFieldState.reset.
finalinherited
onSaved FormFieldSetter<DateTime>?
An optional method to call with the final value when the form is saved via FormState.save.
finalinherited
onTouched → void Function()?
finalinherited
restorationId String?
Restoration ID to save and restore the state of the form field.
finalinherited
routeSettings RouteSettings?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectableDayPredicate SelectableDayPredicate?
final
selectionOverlayBuilder Widget? Function(BuildContext, {required int columnCount, required int selectedIndex})?
final
showDayOfWeek bool
final
showModalPopup bool
final
switchToCalendarEntryModeIcon Icon?
final
switchToInputEntryModeIcon Icon?
final
textBuilder FastDatePickerTextBuilder
final
textDirection TextDirection?
final
textStyle TextStyle?
final
use24hFormat bool
final
useRootNavigator bool
final
validator FormFieldValidator<DateTime>?
An optional method that validates an input. Returns an error string to display if the input is invalid, or null otherwise.
finalinherited

Methods

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