LiteDatePicker constructor

LiteDatePicker({
  1. Key? key,
  2. required String name,
  3. LiteFormValueSerializer serializer = nonConvertingValueConvertor,
  4. LiteFormValueSerializer? initialValueDeserializer,
  5. List<LiteValidator>? validators,
  6. TextStyle? errorStyle,
  7. ValueChanged<DateTime?>? onChanged,
  8. Object? initialValue,
  9. DateTime? maxDate,
  10. DateTime? minDate,
  11. DateFormat? format,
  12. Color? pickerBackgroundColor,
  13. AutovalidateMode? autovalidateMode,
  14. String? hintText,
  15. String? label,
  16. InputDecoration? decoration,
  17. DateInputType dateInputType = DateInputType.date,
  18. double paddingTop = 0.0,
  19. double paddingBottom = 0.0,
  20. double paddingLeft = 0.0,
  21. double paddingRight = 0.0,
  22. TextCapitalization textCapitalization = TextCapitalization.none,
  23. TextInputAction? textInputAction,
  24. TextStyle? style,
  25. StrutStyle? strutStyle,
  26. TextDirection? textDirection,
  27. FocusNode? focusNode,
  28. String? restorationId,
  29. TextAlignVertical? textAlignVertical,
  30. bool use24HourFormat = true,
  31. TextAlign textAlign = TextAlign.start,
  32. LiteDatePickerType pickerType = LiteDatePickerType.adaptive,
  33. TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial,
  34. EdgeInsets? smoothErrorPadding = const EdgeInsets.only(top: 6.0),
  35. bool useSmoothError = true,
  36. bool allowErrorTexts = true,
  37. 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));