Skip to content
pubscout

google_mlkit_smart_reply

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

Flutter plugin for Google's ML Kit Smart Reply API

WASM-ready
$ flutter pub add google_mlkit_smart_reply
Source repository

What it does

Provides a bridge to native ML Kit Smart Reply, generating suggested replies for messages via platform channels.

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

Use it when

  • Need quick reply suggestions in a chat UI
  • App targets only iOS and Android

Skip it when

  • Web or other platforms
  • Non‑English conversations

Strengths

  • Native performance via platform channels
  • Simple API usage
  • Supports Swift Package Manager

Weaknesses

  • Only iOS/Android supported
  • English only
  • No Dart‑side processing

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Add plugin to pubspec, set iOS deployment target ≥15.0, add linker flags (-ObjC, -all_load), download ML Kit resource bundles and copy to Xcode target, ensure Android minSdk 21 and targetSdk 36.

final smartReply = SmartReply();
smartReply.addMessageToConversationFromLocalUser('Hi', DateTime.now());
final response = await smartReply.suggestReplies();
if (response.status == SmartReplySuggestionResultStatus.success) {
  for (final suggestion in response.suggestions) {
    print('suggestion: $suggestion');
  }
}
smartReply.close();

Works with

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