dartantic_chat 0.1.0 copy "dartantic_chat: ^0.1.0" to clipboard
dartantic_chat: ^0.1.0 copied to clipboard

PlatformmacOS

AI chat widget for Flutter apps targeting mobile, desktop, and web supporting text, image, and voice input.

Welcome to Dartantic Chat! #

The dartantic_chat package provides Flutter chat UI widgets that make it easy to add an AI chat window to your app. Out of the box, it supports dartantic_ai for access to multiple LLM providers including Google Gemini, OpenAI, Anthropic, Mistral, and Ollama.

Screenshot

Key Features #

  • Multi-turn chat - Maintains context across interactions
  • Streaming responses - Real-time AI response display
  • Voice input - Speech-to-text prompt entry
  • Multimedia attachments - Images, files, and URLs
  • Custom styling - Match your app's design
  • Chat serialization - Save and restore conversations
  • Custom response widgets - Specialized UI for responses
  • Pluggable LLM support - Easy provider integration
  • Cross-platform - Android, iOS, web, macOS, Linux, Windows
  • Function calling - Tool support via dartantic_ai

Quick Start #

import 'package:dartantic_ai/dartantic_ai.dart';
import 'package:dartantic_chat/dartantic_chat.dart';

const _apiKey = String.fromEnvironment('GEMINI_API_KEY');

void main() {
  Agent.environment['GEMINI_API_KEY'] = _apiKey;
  runApp(const App());
}

class ChatPage extends StatelessWidget {
  const ChatPage({super.key});

  @override
  Widget build(BuildContext context) => Scaffold(
    appBar: AppBar(title: const Text('Chat')),
    body: AgentChatView(
      provider: DartanticProvider(
        agent: Agent('gemini'),
      ),
    ),
  );
}

Run with your API key:

flutter run --dart-define=GEMINI_API_KEY=your-api-key-here

Documentation #

Read the full documentation at docs.dartantic.ai

Contributing & Community #

Contributions welcome! Feature requests, bug reports, and PRs are welcome on GitHub.

Want to chat about Dartantic? Drop by the Discussions forum.

License #

This project is a fork of flutter/ai, licensed under the BSD 3-Clause License. See the LICENSE file for details.

1
likes
160
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

AI chat widget for Flutter apps targeting mobile, desktop, and web supporting text, image, and voice input.

Repository (GitHub)
View/report issues

Topics

#ai #chat #gemini

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cross_file, dartantic_ai, dartantic_interface, file_selector, flutter, flutter_context_menu, flutter_markdown_plus, flutter_picture_taker, google_fonts, image_picker, mac_menu_bar, mime, super_clipboard, universal_platform, url_launcher, uuid, waveform_recorder

More

Packages that depend on dartantic_chat