flutter_local_ai 0.0.1-dev.9 copy "flutter_local_ai: ^0.0.1-dev.9" to clipboard
flutter_local_ai: ^0.0.1-dev.9 copied to clipboard

A Flutter package that wraps Android ML Kit GenAI and Apple Foundation Models APIs (iOS and macOS) for local AI inference.

0.0.1-dev.9 #

Android - Complete Implementation #

  • Completed Android support - Full working implementation using ML Kit GenAI (Gemini Nano)
  • Improved FlutterLocalAiPlugin.kt - Enhanced with proper context management, coroutine scope handling, and error detection
  • Java 11 support - Updated build.gradle to require Java 11 (required for ML Kit GenAI)
  • AICore integration - Added proper AICore library declaration and error handling
  • Play Store integration - Added openAICorePlayStore() method to help users install AICore
  • Enhanced error handling - Improved error code -101 detection and user-friendly error messages
  • Dependencies - Added play-services-tasks:18.0.2 dependency
  • Example app updates - Added AICore library declaration and dependencies to example app
  • Comprehensive documentation - Updated README.md with complete Android setup instructions, AICore handling guide, and code examples

Improvements #

  • Better token counting (filtering empty strings)
  • Improved Play Store opening logic with proper activity resolution
  • Proper cleanup in onDetachedFromEngine (canceling coroutine scope)
  • Enhanced logging for debugging AICore issues

Documentation #

  • Complete Android setup guide with step-by-step instructions
  • AICore requirement explanation and handling examples
  • Platform-specific usage examples
  • Error handling best practices
  • Updated platform support table (Android now shows ✅)

0.0.1-dev.8 #

  • Wip on Android
  • First usage of AICore

0.0.1-dev.7 #

  • Added support to macOS
  • Migrated to Swift Package Manager

0.0.1-dev.6 #

  • Enhanced documentation

0.0.1-dev.5 #

  • Improved Android logic

0.0.1-dev.4 #

  • Improved iOS logic

0.0.1-dev.3 #

  • Enhanced documentation

0.0.1-dev.2 #

  • Added development warning

0.0.1-dev.1 #

  • Initial beta release
  • Android implementation using ML Kit GenAI
  • iOS implementation structure (placeholder for Apple GenAI API)
  • Dart API for text generation
  • Example app included
  • Comprehensive test suite
23
likes
0
points
204
downloads

Publisher

verified publishervezz.io

Weekly Downloads

A Flutter package that wraps Android ML Kit GenAI and Apple Foundation Models APIs (iOS and macOS) for local AI inference.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_local_ai

Packages that implement flutter_local_ai