PDF form events and notifications
Nutrient Flutter SDK emits events when users update form fields in a document. Subscribe to the typed controller.events stream from the NutrientDocumentView onControllerReady callback.
The SDK supports the following form event:
| Stream | Event | Description |
|---|---|---|
controller.events.formFieldUpdated | FormFieldUpdatedEvent | The SDK emits this when users update a form field value. |
The event exposes the affected field as a typed PdfFormField through event.formField.
Use the following listener to respond to form field updates:
NutrientDocumentView( documentPath: documentPath, onControllerReady: (controller) { controller.events.formFieldUpdated.listen((event) { final field = event.formField; if (field != null) { print('Updated ${field.fullyQualifiedName}'); } }); },)These listeners cover most form event use cases. For advanced customization, use the Nutrient native and web SDKs. Refer to the Nutrient Flutter SDK customization guide and the following guides for more information: