From 5f8672f7e52b658a15f25d2c2e0a4788ae8a28c9 Mon Sep 17 00:00:00 2001 From: Michael Aziz Date: Sat, 24 Jan 2026 18:09:48 +0200 Subject: [PATCH] [FIX] Field Groups hydration --- lib/src/form/src/controller.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/src/form/src/controller.dart b/lib/src/form/src/controller.dart index 241dd47..295696c 100644 --- a/lib/src/form/src/controller.dart +++ b/lib/src/form/src/controller.dart @@ -131,13 +131,16 @@ class AstromicFormController { final key = parentUuid == null ? '${groupId}_manifest' : '${_getParentKey(groupId, parentUuid)}_manifest'; if (!_nodes.containsKey(key)) { + // 1. Create the node with the specific List type _nodes[key] = AstromicFieldNode>( - [], + [], formatter: (v) => v.length.toString(), - parser: (v) => [], + parser: (v) => [], ); } - return _nodes[key] as ValueNotifier>; + + final node = _nodes[key]; + return (node as dynamic) as ValueNotifier>; } /// Adds a new instance to a dynamic group, generating a UUID and initializing all schema fields.