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
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.
- google_mlkit_commonsSame familyCommon classes and utility methods for Google's ML Kit plugins
- google_mlkit_text_recognitionSame familyFlutter plugin to use Google's ML Kit Text Recognition on Android and iOS.
- google_mlkit_barcode_scanningSame familyA Flutter plugin to use Google's ML Kit Barcode Scanning on Android and iOS.
- google_mlkit_face_detectionSame familyFlutter plugin to use Google's ML Kit Face Detection on iOS and Android.
- google_mlkit_translationSame familyFlutter plugin for Google's ML Kit On-Device Translation.
- google_mlkit_selfie_segmentationSame familyFlutter plugin to use Google's ML Kit Selfie Segmentation API.
- google_mlkit_language_idSame familyDetermine the language of a text string using Google's ML Kit.
- google_mlkit_pose_detectionSame familyFlutter plugin for Google ML Kit Pose Detection on Android and iOS.