ai_smart_translate 1.0.2 copy "ai_smart_translate: ^1.0.2" to clipboard
ai_smart_translate: ^1.0.2 copied to clipboard

AI-powered Flutter translation package with automatic fallback across multiple free AI providers (Gemini, Groq, OpenRouter, Mistral). Supports offline caching, .tr extension, and zero JSON maintenance.

135/ 160
pub points
122
downloads

We analyzed this package 6 days ago, and awarded it 135 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
15 / 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

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("1.0.2").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

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

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

35 out of 42 API elements (83.3 %) have documentation comments.

Some symbols that are missing documentation: ai_smart_translate.StringTranslation, ai_smart_translate.TrData.TrData.new, ai_smart_translate.TrData.tick, ai_smart_translate.TranslateConfig.languageName, ai_smart_translate.TranslateConfig.languageNames.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:ai_smart_translate/ai_smart_translate.dart that imports:
  • package:ai_smart_translate/src/service/translate_service.dart that imports:
  • package:ai_smart_translate/src/cache/translation_cache.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:ai_smart_translate/ai_smart_translate.dart that imports:
  • package:ai_smart_translate/src/service/translate_service.dart that imports:
  • package:ai_smart_translate/src/cache/translation_cache.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Web`.

Because:

  • package:ai_smart_translate/ai_smart_translate.dart that imports:
  • package:ai_smart_translate/src/service/translate_service.dart that imports:
  • package:ai_smart_translate/src/cache/translation_cache.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: Angle brackets will be interpreted as HTML.

lib/src/cache/translation_cache.dart:49:18

   ╷
49 │   /// Returns Map<sourceText, translated> for cached entries only.
   │                  ^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/cache/translation_cache.dart

INFO: Angle brackets will be interpreted as HTML.

lib/src/providers/ai_provider.dart:33:51

   ╷
33 │   /// Translate [texts] to [langName]. Returns Map<source, translated>.
   │                                                   ^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/providers/ai_provider.dart

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

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

Package Constraint Compatible Latest Notes
http ^1.2.2 1.6.0 1.6.0
path ^1.9.0 1.9.1 1.9.1
shared_preferences ^2.5.3 2.5.5 2.5.5
sqflite ^2.3.3 2.4.2 2.4.2
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.13.0 0.13.0
meta - 1.17.0 1.18.2
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.3.0 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
shared_preferences_android - 2.4.23 2.4.23
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
sqflite_android - 2.4.2+3 2.4.2+3
sqflite_common - 2.5.6 2.5.6
sqflite_darwin - 2.4.2 2.4.2
sqflite_platform_interface - 2.4.0 2.4.0
string_scanner - 1.4.1 1.4.1
synchronized - 3.4.0 3.4.0
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.3.0
web - 1.1.1 1.1.1
xdg_directories - 1.1.0 1.1.0

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

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.12, Flutter 3.41.4, Dart 3.11.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
135
points
122
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

AI-powered Flutter translation package with automatic fallback across multiple free AI providers (Gemini, Groq, OpenRouter, Mistral). Supports offline caching, .tr extension, and zero JSON maintenance.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http, path, shared_preferences, sqflite

More

Packages that depend on ai_smart_translate