This commit is contained in:
J. A. Messias 2024-09-13 17:23:14 -03:00
parent 3dc941ba4c
commit ac26e0ddac
1 changed files with 23 additions and 8 deletions

View File

@ -270,13 +270,28 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
void clearFields() { void clearFields() {
uploadedLocalFile = null; uploadedLocalFile = null;
textControllerName.text = ''; textControllerName!.clear();
textControllerSpecies.text = ''; textControllerName!.clearComposing();
textControllerRace.text = '';
textControllerColor.text = ''; textControllerSpecies!.clear();
textControllerData.text = ''; textControllerSpecies!.clearComposing();
textControllerObservation.text = '';
dropDownValueController1 = FormFieldController<String>(''); textControllerRace!.clear();
dropDownValueController2 = FormFieldController<String>(''); textControllerRace!.clearComposing();
textControllerColor!.clear();
textControllerColor!.clearComposing();
textControllerData!.clear();
textControllerData!.clearComposing();
textControllerObservation!.clear();
textControllerObservation!.clearComposing();
dropDownValue1 = null;
dropDownValue2 = null;
dropDownValueController1 = FormFieldController<String>(null);
dropDownValueController2 = FormFieldController<String>(null);
} }
} }