Skip to content
pubscout

flutter_ai_toolkit

1.2.0, released yesterday by labs.flutter.dev

AI chat widgets and LLM provider integration for Flutter apps.

Uses material_ui
$ flutter pub add flutter_ai_toolkit
Source repository

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.

Works with

Packages commonly used together with flutter_ai_toolkit: ones it builds on, ones built on it, and its own family.