You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using addFieldBlocs and removeFieldBlocs based on SelectFieldBloc changes. The problem is when I use declare:
static final EmployerLogo = InputFieldBloc<ElevatedButton?, dynamic>(
initialValue: null,
validators: [FieldBlocValidators.required],
);
and included in widget build in:
BlocBuilder<InputFieldBloc, InputFieldBlocState>(
bloc: ConditionalFieldsForm.EmployerLogo,
builder: (context, state) {
return ElevatedButton(
onPressed: () async {
logo = await ImagePickerServices
.getImageAsFile();
if (logo == null) return;
I'm using addFieldBlocs and removeFieldBlocs based on SelectFieldBloc changes. The problem is when I use declare:
static final EmployerLogo = InputFieldBloc<ElevatedButton?, dynamic>(
initialValue: null,
validators: [FieldBlocValidators.required],
);
and included in widget build in:
BlocBuilder<InputFieldBloc, InputFieldBlocState>(
bloc: ConditionalFieldsForm.EmployerLogo,
builder: (context, state) {
return ElevatedButton(
onPressed: () async {
logo = await ImagePickerServices
.getImageAsFile();
if (logo == null) return;
the changes on SelectFieldBloc doesn't add or remove the button. it is stuck like in the next image:
The text was updated successfully, but these errors were encountered: