flutter_ai_toolkit
1.2.0, released yesterday by labs.flutter.dev
AI chat widgets and LLM provider integration for Flutter apps.
What it does
Provides a set of AI chat-related widgets to easily add an AI chat window supporting multi-turn chat, streaming responses, voice input, and multimedia attachments to a Flutter app. It uses an abstract LLM provider API with built-in support for Firebase AI.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to add an AI chat interface to your mobile, desktop, or web Flutter app.
- You are using Firebase AI / Gemini as your LLM backend.
- You need built-in support for voice input, rich text, and multimedia attachments in chat.
Skip it when
- You are not using Firebase or need an LLM provider not supported by the abstract API.
- You need low-level model access without any prebuilt UI chat widgets.
Strengths
- Multi-turn chat and real-time streaming responses out of the box.
- Supports text, image, and voice input along with file attachments.
- Cross-platform support for Android, iOS, web, and macOS.
Weaknesses
- Requires a Firebase project and setup for its primary out-of-the-box provider.
- API key support for certain direct providers has been dropped in favor of Firebase projects.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 15
Requires initializing Firebase using flutterfire config, adding platform network access permissions for macOS/Android, and configuring microphone and media picker permissions.
class ChatPage extends StatelessWidget {
const ChatPage({super.key});
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(title: const Text('AI Chat')),
body: LlmChatView(
provider: FirebaseProvider(
model: FirebaseAI.googleAI().generativeModel(model: 'gemini-2.0-flash'),
),
),
);
}Alternatives
Packages that do the same job and could replace flutter_ai_toolkit.
- flutter_local_ai
Unified API for on-device AI inference using native OS models.
89Compare - genkit_llamadart
Genkit Dart plugin for local AI through llamadart: GGUF, LiteRT-LM, chat, tool calling, and embeddings
81Compare - whisper_cpp_flutter_plus
Offline whisper.cpp bindings for speech-to-text, translation, and VAD in Flutter
66Compare - apple_vision_recognize_text
Flutter plugin to use Apple Vision Text Recognition in an image or live camera feed.
56Compare
Works with
Packages commonly used together with flutter_ai_toolkit: ones it builds on, ones built on it, and its own family.
- uuidflutter_ai_toolkit depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- mimeflutter_ai_toolkit depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- url_launcherflutter_ai_toolkit depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- image_pickerflutter_ai_toolkit depends on itFlutter plugin for selecting images/videos from the gallery and capturing new ones via camera.
- material_uiflutter_ai_toolkit depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uiflutter_ai_toolkit depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- google_fontsflutter_ai_toolkit depends on itFlutter package to load Google Fonts at runtime or bundle them as assets
- universal_platformflutter_ai_toolkit depends on itPlatform detection across Flutter, Dart web, and desktop without errors