npx skills add https://github.com/flutter/genui --skill create-catalog-itemInstallieren Sie diesen Skill über die CLI und beginnen Sie mit der Verwendung des SKILL.md-Workflows in Ihrem Arbeitsbereich.
A Flutter library to enable developers to easily add interactive
generative UI to their applications.
See the Getting started with GenUI video for an overview of the package.
This is a highly experimental package, which means the API will change (sometimes drastically).
Feedback is very welcome.
Our goal for the GenUI SDK for Flutter is to help you replace static "walls of text" from your LLM with
dynamic, interactive, graphical UI.
It uses a JSON-based format to compose UIs from your existing widget catalog, turning
conversations or agent interactions into rich, intuitive experiences. State changes in the UI update
a client-side data model, which is fed back to the agent, creating a
powerful, high-bandwidth interaction loop. The GenUI SDK for Flutter aims to be easy to integrate
into your Flutter application to significantly improve the usability and satisfaction of your
chatbots and next-generation agent-based user experiences.
The GIF above shows how GenUI enables dynamic, interactive UI generation,
instead of text descriptions or code from a traditional AI coding agent.
This UI is not generated in the form of code; rather, it's generated at runtime
based on a widget catalog from the developers' project.
The genui framework is designed to be backend agnostic. You can use any AI SDK (such as google_generative_ai, dartantic_ai, or firebase_vertexai) to generate content. The framework provides adapters (like A2uiTransportAdapter) to ingest the AI response and render it.
For custom agent servers that implement the A2UI protocol, you can use the genui_a2a package.
See the package table below for more details on each.
| Package | Description | Version |
|---|---|---|
| genui | The core framework to employ Generative UI. | |
| genui_a2a | Provides A2uiAgentConnector for connecting to any server that implements the A2UI protocol. Use this for integrating with custom agent backends. |
|
| genai_primitives | A set of technology-agnostic primitive types and data structures for building Generative AI applications. | |
| json_schema_builder | A fully featured Dart JSON Schema package with validation, used by the core framework to define widget data structures. |
This diagram shows how packages depend on each other and how examples use them.
graph TD
examples/catalog_gallery --> genui
examples/simple_chat --> genui
examples/travel_app --> genui
examples/verdure --> genui_a2a
genui_a2a --> genui
genui --> genai_primitives
genai_primitives --> json_schema_builder
The Flutter Gen UI SDK uses the A2UI protocol to represent UI content internally. The genui_a2a package allows it to act as a renderer for UIs generated by an A2UI backend agent, similar to the other A2UI renderers which are maintained within the A2UI repository.
The Flutter Gen UI SDK currently supports A2UI v0.9.
See the genui getting started guide.
This repo contains skill files for developers building with agentic coding tools. They can be copied directly into an agent's preferred location or installed using the skills package:
npx skills add https://github.com/flutter/genui/tree/main/packages/genui/skills
This repo requires Flutter version >=3.35.7.
See CONTRIBUTING.md