flutter_ai_chat_kit 0.0.3
flutter_ai_chat_kit: ^0.0.3 copied to clipboard
A production-ready Flutter package for integrating multiple AI providers (OpenAI, Gemini, Claude, etc.) with a unified API.
flutter_ai_chat_kit #
A production-ready Flutter package for integrating multiple AI providers (OpenAI, Gemini, Claude, etc.) with a unified API.
✨ Features #
- 🚀 Unified API: Switch between AI providers (OpenAI, Gemini, etc.) without changing your UI code.
- ⚡ Streaming Support: Real-time responses with incremental updates for that "ChatGPT feel".
- 🏗️ Clean Architecture: Built with Strategy, Repository, and Controller patterns for maximum extensibility.
- 📝 Markdown Support: Built-in rich text rendering for AI responses (code blocks, tables, etc.).
- 💾 Persistence: Built-in support for conversation history and local caching.
- 🎨 Modern UI: Beautiful Material 3 chat components included out-of-the-box.
📸 Screenshots #
| Light Mode | Dark Mode | Markdown Support |
|---|---|---|
![]() |
![]() |
![]() |
Quick Start #
1. Initialize the Provider #
final provider = OpenAIProvider(
apiKey: 'your-api-key',
model: 'gpt-4',
);
2. Setup the Repository #
final repository = ChatRepository(provider: provider);
3. Use the Controller #
final controller = AIChatController(repository: repository);
// Send a message
await controller.sendMessage("Hello!");
// Or stream a message
await controller.streamMessage("Write a story...");
4. Plug into UI #
AIChatView(
controller: controller,
)
Supported Providers #
- ✅ OpenAI
- ✅ Gemini
- ✅ Anthropic Claude
- ❌ Ollama (Coming Soon)
- ❌ DeepSeek (Coming Soon)
License #
MIT


