DatePickerFieldBlocBuilder<T extends FormBloc> constructor

DatePickerFieldBlocBuilder<T extends FormBloc>({
  1. Key? key,
  2. required String fieldName,
  3. InputDecoration decoration = const InputDecoration(),
  4. Widget builder(
    1. BuildContext,
    2. Widget?
    )?,
  5. Icon? clearIcon = const Icon(Icons.clear),
  6. TextStyle? style,
  7. bool clearable = false,
  8. DateTime? firstDate,
  9. String? format,
  10. Locale? locale,
  11. bool autofocus = false,
  12. DateTime? lastDate,
  13. DatePickerMode initialDatePickerMode = DatePickerMode.day,
})

Create a text field input

This should be place after the FormBlocListener in the widget tree. Listen on bloc to change value dynamically and display eventual error key.

Implementation

DatePickerFieldBlocBuilder({
  Key? key,
  required this.fieldName,
  this.decoration = const InputDecoration(),
  this.builder,
  this.clearIcon = const Icon(Icons.clear),
  this.style,
  this.clearable = false,
  this.firstDate,
  this.format,
  this.locale,
  this.autofocus = false,
  this.lastDate,
  this.initialDatePickerMode = DatePickerMode.day,
}) : super(key: key);