Flutter A2UI 1.0 Shrinks AI UI Token Use and Enforces Component Rules
A2UI 1.0 makes AI-generated UIs cheaper and structurally safer, but it still requires per-platform widget implementation and pushes transport and state management back onto the app. For teams building Flutter clients with agent-generated interfaces, this is the first protocol version that treats common engineering pain points as first-class problems.
Flutter's A2UI 1.0 protocol and SDK packages are out, replacing the original genui. The release splits responsibilities across three packages: a2ui_agent tells the model what components exist and compiles Express or JSON into A2UI messages; a2ui_core validates messages and manages surfaces, component trees, data models, and function calls; a2ui_flutter maps validated components to Flutter widgets. The old SurfaceController and Conversation/Transport wrappers are gone, so apps now manage chat history and network transport themselves.
The protocol adds several engineering fixes for AI-generated UIs. Catalogs now support allowedParents and allowedChildren rules that the client enforces before building widgets, returning UNALLOWED_CHILD or UNALLOWED_PARENT errors. A single Surface can use multiple Catalogs, so common and business-specific components stay separate. Express, a compact output format replacing verbose JSON, cuts token usage: with Gemini 3.8 Flash and 54 samples, median output tokens drop from 807 to 297 (63% less), input tokens from 10,980 to 6,000, with the same 53/54 pass@1. A full dashboard generation time drops from 10 seconds to 5.
The new callAgentFunction lets deterministic interactions, like incrementing a quantity, call a registered backend function directly, while only genuinely new questions go back to the LLM. metadata.extensions carries correlation tokens from Python multi-agent backends to Flutter for tracing. A2UI still requires implementing custom widgets on each rendering target; the protocol only standardizes the message layer.
The two-layer validation, where the model sees Catalog rules but the client rejects violations before building, treats LLM mistakes as an expected failure mode rather than trying to prevent them at generation time only.
Because Express halves token counts without changing pass rates, the dominant cost of AI UI generation isn't the model's reasoning but the serialization of repeating JSON structure.
A2UI still doesn't deliver cross-platform widgets from a single Catalog; each rendering target needs its own implementation, so the protocol's value is in message and validation standardization, not eliminating platform work.