flutter_device_ai 0.3.0
flutter_device_ai: ^0.3.0 copied to clipboard
On-device generative AI for Flutter: Apple Foundation Models, Gemini Nano and Chrome built-in AI with streaming, tool calling and JSON-schema output.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_device_aiThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
flutter_device_ai: ^0.3.0Alternatively, 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:flutter_device_ai/flutter_device_ai.dart';