form_bloc
form_bloc copied to clipboard
Unable to set initial time for datetimepicker in `both` type
Due to this code
initialTime: widget.type == DateTimeFieldBlocBuilderBaseType.time
? widget.dateTimeFieldBloc.state.value ?? widget.initialTime
: widget.dateTimeFieldBloc.state.value == null
? TimeOfDay.fromDateTime(
widget.dateTimeFieldBloc.state.value ?? DateTime.now(),
)
: widget.initialTime,
In case if there is no state value - initial time will always be DateTime.now()
@GiancarloCode any thoughts?
@GiancarloCode any thoughts?