Skip to content
pubscout

google_ml_kit

1.0.3, released 8 days ago by flutter-ml.dev

Umbrella Flutter plugin for Google's standalone ML Kit APIs.

$ flutter pub add google_ml_kit
Source repository

What it does

Groups multiple Vision, Natural Language, and GenAI standalone ML Kit plugins under a single package. It allows Flutter applications to use Google's on-device machine learning capabilities via platform channels. Note that the documentation advises depending on individual packages rather than this umbrella package in production.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to quickly prototype multiple ML Kit features during early development.
  • You need on-device machine learning features like barcode scanning, face detection, or text recognition.

Skip it when

  • You are building a production app (the README explicitly states: DO NOT USE google_ml_kit in a production app; instead, depend directly on individual plugin packages).
  • You want to avoid increasing your app size with unused ML dependencies.
  • You need web or non-mobile platforms support.

Strengths

  • Provides a single convenient package to access a wide array of ML Kit features during prototyping.
  • Covers multiple domains including Vision, Natural Language, and GenAI APIs.
  • Supports both Android and iOS platforms for most features.

Weaknesses

  • Significantly increases app size because it includes all exported plugins and dependencies.
  • Not recommended for production use, requiring manual migration to individual packages later.
  • GenAI features have limited Android device compatibility and lack iOS support.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
20

Requires mobile configuration for Android and iOS. GenAI APIs require devices with AICore support. iOS minimum deployment target is 15.0.

not documented

Alternatives

Packages that do the same job and could replace google_ml_kit.

  • googleai_dart

    Unofficial Dart client for Google AI Gemini, Vertex AI Gemini, and Live API WebSockets.

  • mediapipe_core

    Shared layer for MediaPipe task packages providing runtime, model downloads, and browser support.

  • langchain_google

    LangChain.dart integration module for Google AI, Gemini, and VertexAI.

  • gemini_live

    A Flutter package for the Gemini Live API, enabling real-time, multimodal conversations with Google's Gemini models.

Works with

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