flutter-genui
Flutter GenUI SDK — Conversational AI-Driven UI
Tech Stack: Flutter 3.41.x / Dart 3.10.9,
genuipackage (experimental/alpha), A2UI Protocol v0.8+, Riverpod 3.x
What is GenUI?
GenUI is Flutter's official SDK for generative UI — it turns text-based LLM conversations into interactive native Flutter widgets at runtime. Instead of receiving walls of text from an AI agent, users interact with dynamically rendered graphical interfaces composed from a developer-defined widget catalog.
Key principle: The AI agent generates structured JSON (A2UI protocol); the Flutter client validates against an approved catalog and renders native widgets. Agents never generate Dart code — they describe intent via JSON, the client renders it safely.
Status: Highly experimental / alpha. API will change. Pin to a specific commit or version.
Iron Law
GENUI PAYLOADS ARE UNTRUSTED. VALIDATE COMPONENT TYPES AGAINST THE CATALOG BEFORE RENDERING. NEVER EXECUTE AGENT-PROVIDED CODE. NEVER RENDER UNREGISTERED WIDGET TYPES.