Search packages, repositories and app categories

Package detailsv1.11.4

flutter_gemma

A Flutter plugin for running Gemma and other LLMs locally on Android, iOS, Web, and Desktop. Supports multimodal vision, audio, function calling, thinking mode, GPU acceleration, text embeddings, and on-device RAG.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
40.9K
Likes
436
Pub points
130

Install package

flutter pub add flutter_gemma

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter_Gemma is a Flutter plugin enabling local execution of Gemma and other large language models (LLMs) across Android, iOS, Web, and desktop platforms. It supports advanced features like multimodal input (vision and audio), function calling, thinking mode, GPU acceleration, text embeddings, and on-device retrieval-augmented generation (RAG). Designed for privacy-focused applications, it runs models entirely on the device without relying on cloud services. Ideal for developers building AI-powered apps with real-time, secure, and offline capabilities.

Use cases

  • Offline AI chat applications
  • Privacy-first content generation
  • Multimodal image and audio processing
  • On-device RAG systems
  • Real-time function calling in apps
  • Local LLM inference for mobile and desktop

Key features

  • Runs LLMs locally on all platforms
  • Supports vision and audio multimodal input
  • GPU acceleration for performance
  • Function calling and thinking mode
  • Text embeddings and on-device RAG
  • Secure, privacy-preserving inference

Suitable for

  • Developers building private AI apps
  • Teams needing offline LLM capabilities
  • Apps requiring low-latency inference
  • Projects focused on data privacy
  • Cross-platform AI solutions

Considerations

  • High memory usage for large models
  • Requires compatible hardware for optimal performance
  • Model size impacts app bundle size
  • Limited to supported model architectures
  • Initial setup may require platform-specific configurations

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Flutter Edge AI

pub package License: MIT

On-device AI for Flutter on Android, iOS, Web, macOS, Windows and Linux. Run any model a registered engine runs, or the model the operating system already ships, with text, vision, audio, function calling, embeddings, RAG and speech. No server, no cloud.

Website · Docs · Models · Codelabs · pub.dev

The core package is small: it installs models and hands them to engines. Every runtime, store and feature is a separate opt-in package, so an app ships only what it uses. Start with the core README or Getting started.

Packages

Package What it does Docs
flutter_edge_ai Core: model installation, the engine registry, sessions and chat. Required by every package except diagnostics and genkit_hybrid. pub.dev · site
Engines
flutter_edge_ai_litertlm LiteRT-LM (.litertlm) through dart:ffi on the five native platforms plus web; CPU, GPU and NPU; the LiteRT embedding backend. pub.dev · site
flutter_edge_ai_mediapipe MediaPipe (.task) on Android, iOS and web. Google's LLM Inference API is maintenance-only; new apps should use .litertlm. pub.dev · site
flutter_edge_ai_llama llama.cpp (.gguf) through llamadart on Android, iOS, macOS, Windows, Linux and web; native LoRA. pub.dev · site
flutter_edge_ai_onnx ONNX Runtime: GenAI inference and embeddings natively, Transformers.js and onnxruntime-web on web. pub.dev · site
flutter_edge_ai_builtin_ai The OS model, nothing to download: Gemini Nano (Android), Apple Foundation Models (iOS, macOS), Windows AI Foundry, the browser Prompt API. pub.dev · site
Embeddings and RAG
flutter_edge_ai_embeddings Embedding tokenizers (Gemma SentencePiece, BERT WordPiece) for .tflite and .onnx embedders. pub.dev · site
flutter_edge_ai_rag On-device RAG: RagIndex, embedding profiles, filters and the vector-store contract. pub.dev · site
flutter_edge_ai_sqlite SQLite (sqlite-vec) vector store on every platform, web included. pub.dev · site
flutter_edge_ai_qdrant Qdrant Edge vector store on native platforms. pub.dev · site
Speech, agents, diagnostics
flutter_edge_ai_speech Speech-to-text, text-to-speech and the VoiceSession voice loop. pub.dev · site
flutter_edge_ai_agent Agent skills (SKILL.md) the model picks and runs: text, JS, native intents and MCP tools. pub.dev · site
flutter_edge_ai_diagnostics Process memory diagnostics on Android, iOS, macOS, Linux and Windows. pub.dev · site
Genkit
genkit_flutter_edge_ai Genkit Dart plugin: on-device models and embedders as Genkit models. pub.dev · site
genkit_hybrid Hybrid routing for Genkit: on-device and cloud models behind one routing policy. Depends only on genkit. pub.dev · site

Which package you need for which task, and how they fit together: Packages and Capabilities.

Maintainers

Maintainer Looks after
Sasha Denisov (@DenisovAV) Lead maintainer: the core API, the engines, the native builds and every release
Jhin Lee (@leehack) flutter_edge_ai_llama
Francesco Vezzani (@kekko7072) flutter_edge_ai_builtin_ai
Samarthsinh Vala (@samarthsinh2660) flutter_edge_ai_diagnostics
Daisuke Majima (@john-rocky) The Hugging Face integration: installing a model straight from its repository

Everyone else who has contributed, and more about each maintainer: flutteredge.ai/contributors.

Repository

More: Migration guide · Desktop support · Contributing. The family shipped as flutter_gemma* up to core 1.11.4; those names stay published as they are.

License

MIT — see LICENSE.

Categories

Dependencies

Dependency list 12 items

Source repository

Projects using this package

No data available yet.

Rankings