DatePickerFieldBlocBuilder<T extends FormBloc> constructor
DatePickerFieldBlocBuilder<T extends FormBloc> ({
- Key? key,
- required String fieldName,
- InputDecoration decoration = const InputDecoration(),
- Widget builder()?,
- Icon? clearIcon = const Icon(Icons.clear),
- TextStyle? style,
- bool clearable = false,
- DateTime? firstDate,
- String? format,
- Locale? locale,
- bool autofocus = false,
- DateTime? lastDate,
- 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);