Flutter connects Genkit Dart and A2UI into an inspectable full-stack native UI flow
On November 24, Flutter published an end-to-end implementation in which a Genkit Dart agent calls server-side tools and streams catalog-validated A2UI surfaces, Flutter renders them with native widgets, and form actions return to the agent as structured events. Reusing a surfaceId replaces the reservation form in place with a confirmation card.
Why it matters
The walkthrough moves generative UI from protocol concepts to runnable frontend and backend boundaries. Tools, model credentials, and business mutations stay on the server; the client renders only approved catalog components; and developers can inspect the component tree, bound data, validation state, and actions before integrating the app.
A closer look
The example starts with A2UI's 18-component Basic Catalog and adds a domain-specific ConfirmationPass. Genkit's A2UI middleware uses A2UI Express by default, compiles it to standard A2UI JSON on the server, validates against the catalog, and retries errors. Flutter's MessageProcessor turns the stream into A2uiSurface widgets. remoteAgent exposes streaming, snapshot, and cancellation routes, while action messages carry the surfaceId, source component, and form context. Genkit Developer UI previews surfaces, inspects component trees and active data models, simulates actions, and exposes tool traces.
Who this is for
Product and platform teams using Dart and Flutter for native generative interfaces or evaluating A2UI full-stack boundaries, catalog validation, interaction return paths, and local debugging.
Original sources
Revisions & corrections (1)
— New official Flutter evidence documents a distinct, dated end-to-end Genkit Dart and A2UI implementation.