on_device_ai 0.2.1
on_device_ai: ^0.2.1 copied to clipboard
A cross-platform Flutter plugin for on-device AI/ML inference. Supports text sentiment analysis and image classification using Apple frameworks (iOS) and TensorFlow Lite (Android).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add on_device_aiThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
on_device_ai: ^0.2.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:on_device_ai/on_device_ai.dart';