trail_ai 2.0.0 copy "trail_ai: ^2.0.0" to clipboard
trail_ai: ^2.0.0 copied to clipboard

A Flutter package for building AI-powered applications with support for both online (Google Gemini) and offline (Gemma) language models. Features connectivity-aware model switching, streaming response [...]

120/ 160
pub points
170
downloads

We analyzed this package 12 hours ago, and awarded it 120 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

2 out of 80 API elements (2.5 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: trail_ai, trail_ai.TrailAiAgent, trail_ai.TrailAiAgent.TrailAiAgent.new, trail_ai.TrailAiAgent.activeAgentDefinition, trail_ai.TrailAiAgent.activeAgentId.

Passed check 10/10 points: Package has an example

Partially passed report section
Platform support
10 / 20trigger folding of the section

Partially passed check 10/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:trail_ai/trail_ai.dart that imports:
  • package:trail_ai/src/trail_ai_agent.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:trail_ai/trail_ai.dart that imports:
  • package:trail_ai/src/trail_ai_agent.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `Windows`.

Because:

  • package:trail_ai/trail_ai.dart that imports:
  • package:trail_ai/src/trail_ai_agent.dart that imports:
  • package:flutter_gemma/flutter_gemma.dart that imports:
  • package:flutter_gemma/desktop/flutter_gemma_desktop.dart that imports:
  • package:flutter_gemma/mobile/flutter_gemma_mobile.dart that imports:
  • package:flutter_gemma/core/di/service_registry.dart that imports:
  • package:flutter_gemma/core/infrastructure/flutter_asset_loader.dart that imports:
  • package:large_file_handler/large_file_handler.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:trail_ai/trail_ai.dart that imports:
  • package:trail_ai/src/trail_ai_agent.dart that imports:
  • package:flutter_gemma/flutter_gemma.dart that imports:
  • package:flutter_gemma/desktop/flutter_gemma_desktop.dart that imports:
  • package:flutter_gemma/mobile/flutter_gemma_mobile.dart that imports:
  • package:flutter_gemma/core/di/service_registry.dart that imports:
  • package:flutter_gemma/core/infrastructure/flutter_asset_loader.dart that imports:
  • package:large_file_handler/large_file_handler.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:trail_ai/trail_ai.dart that imports:
  • package:trail_ai/src/trail_ai_agent.dart that imports:
  • package:flutter_gemma/flutter_gemma.dart that imports:
  • package:flutter_gemma/desktop/flutter_gemma_desktop.dart that imports:
  • package:flutter_gemma/mobile/flutter_gemma_mobile.dart that imports:
  • package:flutter_gemma/core/di/service_registry.dart that imports:
  • package:flutter_gemma/core/infrastructure/flutter_asset_loader.dart that imports:
  • package:large_file_handler/large_file_handler.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:trail_ai/trail_ai.dart that imports:
  • package:trail_ai/src/trail_ai_agent.dart that imports:
  • package:flutter_gemma/flutter_gemma.dart that imports:
  • package:flutter_gemma/desktop/flutter_gemma_desktop_stub.dart that imports:
  • package:flutter_gemma/flutter_gemma_interface.dart that imports:
  • package:flutter_gemma/mobile/flutter_gemma_mobile.dart that imports:
  • package:flutter_gemma/core/di/service_registry.dart that imports:
  • package:flutter_gemma/core/infrastructure/flutter_asset_loader.dart that imports:
  • package:large_file_handler/large_file_handler.dart that declares support for platforms: Android, iOS.

WASM compatibility:

Package not compatible with runtime wasm

Because:

  • package:trail_ai/trail_ai.dart that imports:
  • package:trail_ai/src/trail_ai_agent.dart that imports:
  • package:flutter_gemma/flutter_gemma.dart that imports:
  • package:flutter_gemma/desktop/flutter_gemma_desktop_stub.dart that imports:
  • package:flutter_gemma/flutter_gemma_interface.dart that imports:
  • package:flutter_gemma/mobile/flutter_gemma_mobile.dart that imports:
  • package:flutter_gemma/core/di/service_registry.dart that imports:
  • package:flutter_gemma/core/infrastructure/dart_vector_store_repository.dart that imports:
  • package:sqlite3/sqlite3.dart that imports:
  • package:sqlite3/src/ffi/api.dart that imports:
  • package:sqlite3/src/ffi/implementation.dart that imports:
  • package:sqlite3/src/ffi/memory.dart that imports:
  • package:sqlite3/src/ffi/libsqlite3.g.dart that imports:
  • dart:ffi

Note: This package supports Web but is not WASM-compatible, resulting in a partial score. See https://dart.dev/web/wasm for details.

Passed report section
Pass static analysis
50 / 50trigger folding of the section

Passed check 50/50 points: code has no errors, warnings, lints, or formatting issues

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
connectivity_plus ^7.0.0 7.2.0 7.2.0
flutter_gemma ^0.12.4 0.12.8 1.2.2
google_generative_ai ^0.4.7 0.4.7 0.4.7
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.1 2.13.1
background_downloader - 9.5.5 9.5.5
characters - 1.4.1 1.4.1
clock - 1.1.2 1.1.2
code_assets - 1.2.1 1.2.1
collection - 1.19.1 1.19.1
connectivity_plus_platform_interface - 2.1.0 2.1.0
crypto - 3.0.7 3.0.7
dart_sentencepiece_tokenizer - 1.3.2 1.3.2
dbus - 0.7.14 0.7.14
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
glob - 2.1.3 2.1.3
google_cloud - 0.5.0 0.5.0
google_identity_services_web - 0.3.3+1 0.3.3+1
googleapis_auth - 2.3.2 2.3.2
grpc - 5.1.0 5.1.0
hooks - 2.0.2 2.0.2
http - 1.6.0 1.6.0
http2 - 2.3.1 2.3.1
http_parser - 4.1.2 4.1.2
jni - 1.0.0 1.0.0
jni_flutter - 1.0.1 1.0.1
large_file_handler - 0.3.1 0.5.0
local_hnsw - 1.0.0 1.0.0
logging - 1.3.0 1.3.0
material_color_utilities - 0.13.0 0.13.0
meta - 1.18.0 1.18.3
mime - 2.0.0 2.0.0
native_toolchain_c - 0.19.2 0.19.2
nm - 0.5.0 0.5.0
objective_c - 9.4.1 9.4.1
package_config - 2.2.0 3.0.0
path - 1.9.1 1.9.1
path_provider - 2.1.6 2.1.6
path_provider_android - 2.3.1 2.3.1
path_provider_foundation - 2.6.0 2.6.0
path_provider_linux - 2.2.2 2.2.2
path_provider_platform_interface - 2.1.3 2.1.3
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.0.2 7.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
protobuf - 6.0.0 6.0.0
pub_semver - 2.2.0 2.2.0
record_use - 0.6.0 0.6.0
shared_preferences - 2.5.5 2.5.5
shared_preferences_android - 2.4.26 2.4.26
shared_preferences_foundation - 2.5.6 2.5.6
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.2 2.4.2
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
source_span - 1.10.2 1.10.2
sqlite3 - 3.3.4 3.3.4
stack_trace - 1.12.1 1.12.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.4.0
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0
xml - 6.6.1 7.0.1
yaml - 3.1.3 3.1.3

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.12.4` on flutter_gemma does not support the stable version `0.13.0`.

Try running dart pub upgrade --major-versions flutter_gemma to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.14, Flutter 3.44.4, Dart 3.12.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
120
points
170
downloads

Documentation

API reference

Publisher

verified publisherabhijithrnair.me

Weekly Downloads

A Flutter package for building AI-powered applications with support for both online (Google Gemini) and offline (Gemma) language models. Features connectivity-aware model switching, streaming responses, and automatic offline model management.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

connectivity_plus, flutter, flutter_gemma, google_generative_ai

More

Packages that depend on trail_ai