DateTimeFieldBlocBuilder constructor
const
DateTimeFieldBlocBuilder({
- Key? key,
- required InputFieldBloc<
DateTime?, dynamic> dateTimeFieldBloc, - required DateFormat format,
- bool canSelectTime = false,
- bool enableOnlyWhenFormBlocCanSubmit = false,
- bool isEnabled = true,
- FieldBlocErrorBuilder? errorBuilder,
- EdgeInsetsGeometry? padding,
- InputDecoration decoration = const InputDecoration(),
- TextAlign? textAlign,
- required DateTime initialDate,
- required DateTime firstDate,
- required DateTime lastDate,
- TimeOfDay? initialTime,
- SelectableDayPredicate? selectableDayPredicate,
- Locale? locale,
- TextDirection? textDirection,
- TransitionBuilder? pickerBuilder,
- RouteSettings? routeSettings,
- bool animateWhenCanShow = true,
- bool? showClearIcon = true,
- Widget? clearIcon,
- FocusNode? nextFocusNode,
- FocusNode? focusNode,
- TextStyle? textStyle,
- MaterialStateProperty<
Color?> ? textColor,
Implementation
const DateTimeFieldBlocBuilder({
Key? key,
required this.dateTimeFieldBloc,
required this.format,
this.canSelectTime = false,
this.enableOnlyWhenFormBlocCanSubmit = false,
this.isEnabled = true,
this.errorBuilder,
this.padding,
this.decoration = const InputDecoration(),
this.textAlign,
required this.initialDate,
required this.firstDate,
required this.lastDate,
this.initialTime,
this.selectableDayPredicate,
this.locale,
this.textDirection,
this.pickerBuilder,
this.useRootNavigator = false,
this.routeSettings,
this.animateWhenCanShow = true,
this.showClearIcon = true,
this.clearIcon,
this.nextFocusNode,
this.focusNode,
this.textStyle,
this.textColor,
}) : super(key: key);