DatePickerBottomSheet constructor
const
DatePickerBottomSheet({
- Key? key,
- TextEditingController? controller,
- FormFieldValidator<
String> ? validator, - ValueChanged<
String> ? onChanged, - InputDecoration? decoration,
- String? labelText,
- String? hintText,
- String dateFormat = 'dd-MM-yyyy',
- DateTime? firstDate,
- DateTime? lastDate,
- Widget? suffixIcon,
- TextStyle? style,
- bool selectableFutureOnly = true,
- String confirmButtonText = 'Aceptar',
- String cancelButtonText = 'Cancelar',
- bool selectableDayPredicate(
- DateTime date
- 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',
});