CustomDateField constructor
const
CustomDateField({
- Key? key,
- String? label,
- TextStyle? labelStyle,
- String? hint,
- DateTime? selectedDate,
- String? errorMsg,
- Color? errorColor,
- void onChanged(
- DateTime selectedDate
- Color? borderColor,
- Color? focusedBorderColor,
- Color? textColor,
- Color? hintColor,
- Color? iconColor,
- bool isDisabled = false,
- bool isOptionalMark = false,
- Color? disabledBorderColor,
- Color? disabledTextColor,
- Color? disabledBackgroundColor,
- Widget? prefixIcon,
- DateTime? firstDate,
- DateTime? lastDate,
- DateFormat? dateFormat,
- DatePickerMode initialDatePickerMode = DatePickerMode.day,
Implementation
const CustomDateField({
Key? key,
this.label,
this.labelStyle,
this.hint,
this.selectedDate,
this.errorMsg,
this.errorColor,
this.onChanged,
this.borderColor,
this.focusedBorderColor,
this.textColor,
this.hintColor,
this.iconColor,
this.isDisabled = false,
this.isOptionalMark = false,
this.disabledBorderColor,
this.disabledTextColor,
this.disabledBackgroundColor,
this.prefixIcon,
this.firstDate,
this.lastDate,
this.dateFormat,
this.initialDatePickerMode = DatePickerMode.day,
}) : super(key: key);