gemini_chat_fab 1.1.0 copy "gemini_chat_fab: ^1.1.0" to clipboard
gemini_chat_fab: ^1.1.0 copied to clipboard

A plug-and-play floating Gemini AI chat assistant for Flutter apps.

Gemini Chat FAB #

A Flutter package that adds a pre-built Floating Action Button to your app, launching a beautiful and fully functional chat interface powered by the Google Gemini API.

Features #

  • ✅ Simple, one-line installation.
  • 💬 Streaming responses for a real-time feel.
  • 🎨 Adapts to your app's theme.
  • 🚀 Lightweight and dependency-free.

Installation #

Add this to your app's pubspec.yaml file:

dependencies:
  gemini_chat_fab: ^1.1.0 # Use the latest version

Usage #

Simply place the GeminiChatFab widget in the floatingActionButton property of your Scaffold.

Make sure to provide your API key when running the app: #

flutter run --dart-define=GEMINI_API_KEY=YOUR_KEY_HERE

Flow #

Add this in your file.

geminiApiKey = String.fromEnvironment('GEMINI_API_KEY');

Then simply add

floatingActionButton: const GeminiChatFab(
  apiKey: geminiApiKey, 
  systemPrompt: "Enter whatever prompt to tailor your needs.",)
1
likes
140
points
183
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A plug-and-play floating Gemini AI chat assistant for Flutter apps.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, google_fonts, google_generative_ai, provider

More

Packages that depend on gemini_chat_fab