This commit is contained in:
2025-04-01 15:38:28 +02:00
parent a771b0d220
commit 01eb92d3fc
2 changed files with 12 additions and 1 deletions

View File

@@ -111,6 +111,17 @@ class AstromicFormController extends FormController {
return ret;
}
@override
void removeController(String id) {
super.removeController(id);
if (fieldStates.containsKey(id)) {
fieldStates.remove(id);
}
if (fieldMessages.containsKey(id)) {
fieldMessages.remove(id);
}
}
//SECTION - Helper Methods
void _addInitialControllers(Map<String, (String, bool)>? initialValues) {
if (initialValues != null) {

View File

@@ -165,7 +165,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "3abe6f1eb41244f33973b4c7f5b40200edc08ccf"
resolved-ref: ef28b08380a54747c58c585e4326e30bcc468a51
url: "https://git.micazi.dev/micazi/form_controller.git"
source: git
version: "0.8.8+2"