A2UI 1.0 explained: AI generates Flutter interfaces without going off the rails
Update · : The A2UI 1.0 protocol version is distinct from the a2ui_flutter pub package version: as of the article, a2ui_flutter is 0.4.0, a2ui_core is 0.8.0 and a2ui_agent is 0.4.0, all supporting protocol 1.0. The Commis restaurant app is cited as an official example in which the agent, given a question about a shellfish-allergic guest, returns a card containing only the dishes that can be replaced.
On 17 November the Flutter team released A2UI 1.0, which lets an AI agent answer with a working Flutter interface instead of text, an approach called Generative UI[1]. The earlier genui package was renamed a2ui_flutter and split into three packages, and the Transport abstraction was removed. The author advises against replacing ordinary pages with it: where a static form already works well, keep the form.
The article gives a minimal example in which two hand-written messages are passed to MessageProcessor and notes that the official blog's code differs from the package API (as of 18 November, a2ui_flutter 0.4.0 with a2ui_core ^0.8.0). Hierarchy guardrails check the allowedParents and allowedChildren fields both in the schema the model sees and on the client before rendering; in a test, a DataTable placed inside a custom button was rejected with error UNALLOWED_CHILD and sent back to the agent. The Express format[2] rewrites the component tree as function calls; an official example shows 46% fewer characters than compressed JSON, and a partner's medical prototype cut dashboard generation from 10 seconds to 5 seconds, with both figures taken from official and partner tests.
Multiple catalogs let one interface combine component sets maintained by different teams, and callAgentFunction lets a component call a backend function directly without involving the model; in an example with a portfolio order card, the update took place within one second. Extension metadata can carry a tracing token[3] that links the agent that generated an interface to the user's actions in the app.
Repository Flutter github.com
Open source UI toolkit from Google for building apps for mobile, web, desktop and embedded from a single codebase.
Repository A2UI github.com
Open-source generative UI framework: an AI agent streams layout data, and the app renders it with native components in React, Flutter, SwiftUI and other frameworks.


