Fix genkit_a2ui Blank Surface: Native Widgets From Agents

genkit_a2ui blank surfaces happen when genui's basic catalog doesn't recognize the catalog id the plugin advertises. Re-tag it with basicCatalogId and your agent can stream date pickers, forms, and confirmation cards as native Flutter widgets.

Last updated: October 21, 2026 Your Genkit agent is doing its job. The model picks a date picker, a confirmation card, a form — the surface data is right there in the stream. And your Flutter screen shows… nothing. A blank rectangle where the UI should be. That's the genkit_a2ui blank surface, and it isn't your agent's fault: genui registers an empty stub for any catalog id it doesn't recognize, so the plugin's surfaces resolve to nothing. The fix is one re-tagged catalog id — basicCatalogId — and then your surfaces render incrementally as real native widgets. Generative UI with A2UI is where the model stops answering in prose and starts emitting interactive UI — date pickers, forms, confirmation cards — that your Flutter app renders incrementally as native widgets. The server side is one line of middleware. The client side is a stream parser and a renderer. And the failure mode you're hitting is a one-line catalog fix that the README documents but no tutorial covers. This guide walks the whole chain: server, client, the blank-surface fix, custom catalogs, and the trust boundary you must respect before shipping. What you'll learn in this genkit_a2ui blank surface guide How agent-to-widget streaming works: a2ui() middleware, envelope parts, and the Flutter renderer The one-line server setup: register A2uiPlugin() , add a2ui() to the agent's use list The Flutter client wiring: remoteAgent + a2uiEnvelopesFromParts into a genui SurfaceController Why surfaces render blank — and the basicCatalogId re-tag that fixes it How to teach the agent your own design system with loadCatalog The trust boundary: why 'strict' validation is not a security check (decision table below first) 🎬 Watch: Instant GenUI with async A2UI —…

Explore