flutter_native_ai 0.3.0 copy "flutter_native_ai: ^0.3.0" to clipboard
flutter_native_ai: ^0.3.0 copied to clipboard

A Flutter plugin for native on-device generative AI through Apple Foundation Models and Android Gemini Nano.

0.3.0 #

  • Replaces service-level initialization and generation with explicit OnDeviceAiSession creation.
  • Adds session-scoped non-streaming generation, streaming generation, cancellation, and disposal.
  • Documents that only one streaming generation should be active at a time for a plugin instance.
  • Reuses native Apple Foundation Models sessions across prompts in the same Dart session.
  • Keeps per-session Android instructions and prompt history for Gemini Nano requests.

0.2.0 #

  • Adds macOS plugin registration and an example macOS runner.
  • Reuses the Apple Foundation Models bridge on macOS with runtime availability checks for macOS 26.0 or later.
  • Adds Swift Package Manager support for the shared iOS/macOS implementation.
  • Uses Swift Package Manager for both Apple example runners, including removing CocoaPods integration from the macOS runner.

0.1.1 #

iOS hotfix release.

  • Fixes the Swift Package Manager library product name to match Flutter's generated hyphenated plugin product reference.

0.1.0 #

Initial pre-release

  • Added an automated publish workflow

0.1.0-alpha.1 #

Initial alpha release.

  • Adds a Dart API for on-device text generation availability, initialization, single response generation, streaming generation, and cancellation.
  • Adds an iOS bridge for Apple Foundation Models.
  • Adds an Android bridge for Gemini Nano through ML Kit Prompt API.
  • Adds Pigeon-generated Dart, Swift, and Kotlin bindings.
3
likes
0
points
639
downloads

Publisher

verified publisherpooka.app

Weekly Downloads

A Flutter plugin for native on-device generative AI through Apple Foundation Models and Android Gemini Nano.

Repository (GitHub)
View/report issues

Topics

#ai #generative-ai #on-device-ai #text-generation #flutter-plugin

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on flutter_native_ai

Packages that implement flutter_native_ai