DatePickerBottomSheet constructor

const DatePickerBottomSheet({
  1. Key? key,
  2. TextEditingController? controller,
  3. FormFieldValidator<String>? validator,
  4. ValueChanged<String>? onChanged,
  5. InputDecoration? decoration,
  6. String? labelText,
  7. String? hintText,
  8. String dateFormat = 'dd-MM-yyyy',
  9. DateTime? firstDate,
  10. DateTime? lastDate,
  11. Widget? suffixIcon,
  12. TextStyle? style,
  13. bool selectableFutureOnly = true,
  14. String confirmButtonText = 'Aceptar',
  15. String cancelButtonText = 'Cancelar',
  16. bool selectableDayPredicate(
    1. DateTime date
    )?,
  17. String? bottomSheetText = 'Selecciona una fecha',
})

Creates a DatePickerBottomSheet with customizable properties.

Implementation

const DatePickerBottomSheet({
  super.key,
  this.controller,
  this.validator,
  this.onChanged,
  this.decoration,
  this.labelText,
  this.hintText,
  this.dateFormat = 'dd-MM-yyyy',
  this.firstDate,
  this.lastDate,
  this.suffixIcon,
  this.style,
  this.selectableFutureOnly = true,
  this.confirmButtonText = 'Aceptar',
  this.cancelButtonText = 'Cancelar',
  this.selectableDayPredicate,
  this.bottomSheetText = 'Selecciona una fecha',
});