flutter_agentic_ui library
flutter_agentic_ui — drop-in chat UI for Flutter AI agents.
An AgenticChatController that drives a AgenticAgent, plus ready-made
widgets: full chat view, message bubbles with streaming, a ReAct step
visualizer, typing indicator, and input bar.
import 'package:flutter_agentic_ui/flutter_agentic_ui.dart';
final controller = AgenticChatController(agent: agent);
// ...
AgenticChatView(controller: controller)
Classes
- AgenticChatController
-
Drives a chat conversation with a
AgenticAgentand exposes it as observable UI state. Attach it to an AgenticChatView, or listen to it yourself and build any UI you like. - AgenticChatTheme
- Visual customisation for the chat widgets. Every field is optional — unset values fall back to the ambient ThemeData.
- AgenticChatView
- A complete chat screen for a AgenticChatController: scrolling message list, live streaming bubbles, ReAct step trails, and an input bar.
- AgentStepsView
- Renders the ReAct steps behind an agent reply — thinking, tool calls, tool results — as a compact expandable trail.
- ChatBubble
- One message bubble — user right/primary, agent left/surface. Shows a TypingIndicator while the reply is pending, the step trail when the agent used tools, and error styling for failed turns.
- ChatInputBar
- Text field + send button. Disables itself while enabled is false and clears after sending.
- ChatMessage
- UI model for one message in the chat.
- TypingIndicator
- Three animated dots — shown while the agent is thinking.
Enums
- ChatMessageStatus
- The lifecycle of one message bubble.