LiteDatePicker constructor
LiteDatePicker({
- Key? key,
- required String name,
- LiteFormValueSerializer serializer = nonConvertingValueConvertor,
- LiteFormValueSerializer? initialValueDeserializer,
- List<
LiteValidator> ? validators, - TextStyle? errorStyle,
- ValueChanged<
DateTime?> ? onChanged, - Object? initialValue,
- DateTime? maxDate,
- DateTime? minDate,
- DateFormat? format,
- Color? pickerBackgroundColor,
- AutovalidateMode? autovalidateMode,
- String? hintText,
- String? label,
- InputDecoration? decoration,
- DateInputType dateInputType = DateInputType.date,
- double paddingTop = 0.0,
- double paddingBottom = 0.0,
- double paddingLeft = 0.0,
- double paddingRight = 0.0,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- FocusNode? focusNode,
- String? restorationId,
- TextAlignVertical? textAlignVertical,
- bool use24HourFormat = true,
- TextAlign textAlign = TextAlign.start,
- LiteDatePickerType pickerType = LiteDatePickerType.adaptive,
- TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial,
- EdgeInsets? smoothErrorPadding = const EdgeInsets.only(top: 6.0),
- bool useSmoothError = true,
- bool allowErrorTexts = true,
- bool readOnly = false,
Implementation
LiteDatePicker({
Key? key,
required this.name,
this.serializer = nonConvertingValueConvertor,
this.initialValueDeserializer,
this.validators,
this.errorStyle,
this.onChanged,
this.initialValue,
this.maxDate,
this.minDate,
this.format,
this.pickerBackgroundColor,
this.autovalidateMode,
this.hintText,
this.label,
this.decoration,
this.dateInputType = DateInputType.date,
this.paddingTop = 0.0,
this.paddingBottom = 0.0,
this.paddingLeft = 0.0,
this.paddingRight = 0.0,
this.textCapitalization = TextCapitalization.none,
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.focusNode,
this.restorationId,
this.textAlignVertical,
this.use24HourFormat = true,
this.textAlign = TextAlign.start,
this.pickerType = LiteDatePickerType.adaptive,
this.initialEntryMode = TimePickerEntryMode.dial,
this.smoothErrorPadding = const EdgeInsets.only(
top: 6.0,
),
this.useSmoothError = true,
this.allowErrorTexts = true,
this.readOnly = false,
}) : super(key: key ?? Key(name));