offline_translator 0.0.2 copy "offline_translator: ^0.0.2" to clipboard
offline_translator: ^0.0.2 copied to clipboard

A Flutter package for offline translation without any json or arb files.

150/ 160
pub points
267
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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.

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

9 out of 23 API elements (39.1 %) have documentation comments.

Some symbols that are missing documentation: offline_translator, offline_translator.OfflineTranslator, offline_translator.OfflineTranslator.instance, offline_translator.TranslatedText, offline_translator.TranslatedText.TranslatedText.new.

Passed check 10/10 points: Package has an example

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

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

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:offline_translator/offline_translator.dart that imports:
  • package:google_mlkit_translation/google_mlkit_translation.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:offline_translator/offline_translator.dart that imports:
  • package:google_mlkit_translation/google_mlkit_translation.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:offline_translator/offline_translator.dart that imports:
  • package:google_mlkit_translation/google_mlkit_translation.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:offline_translator/offline_translator.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:offline_translator/offline_translator.dart that imports:
  • package:path_provider/path_provider.dart that imports:
  • package:path_provider_platform_interface/path_provider_platform_interface.dart that imports:
  • package:path_provider_platform_interface/src/method_channel_path_provider.dart that imports:
  • package:platform/platform.dart that imports:
  • package:platform/src/interface/local_platform.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

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

Found 3 issues. Showing the first 2:

INFO: Library names are not necessary.

lib/offline_translator.dart:4:9

  ╷
4 │ library offline_translator;
  │         ^^^^^^^^^^^^^^^^^^
  ╵

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

INFO: Invalid use of a private type in a public API.

lib/offline_translator.dart:189:3

    ╷
189 │   _TranslatedTextState createState() => _TranslatedTextState();
    │   ^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/offline_translator.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
google_ml_kit ^0.20.0 0.20.0 0.20.0
google_mlkit_translation ^0.13.0 0.13.0 0.13.0
hive ^2.2.3 2.2.3 2.2.3
path_provider ^2.1.5 2.1.5 2.1.5
provider ^6.1.5+1 6.1.5+1 6.1.5+1
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
crypto - 3.0.6 3.0.6
ffi - 2.1.4 2.1.4
google_mlkit_barcode_scanning - 0.14.1 0.14.1
google_mlkit_commons - 0.11.0 0.11.0
google_mlkit_digital_ink_recognition - 0.14.1 0.14.1
google_mlkit_entity_extraction - 0.15.1 0.15.1
google_mlkit_face_detection - 0.13.1 0.13.1
google_mlkit_face_mesh_detection - 0.4.1 0.4.1
google_mlkit_image_labeling - 0.14.1 0.14.1
google_mlkit_language_id - 0.13.0 0.13.0
google_mlkit_object_detection - 0.15.0 0.15.0
google_mlkit_pose_detection - 0.14.0 0.14.0
google_mlkit_selfie_segmentation - 0.10.0 0.10.0
google_mlkit_smart_reply - 0.13.0 0.13.0
google_mlkit_text_recognition - 0.15.0 0.15.0
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
nested - 1.0.0 1.0.0
path - 1.9.1 1.9.1
path_provider_android - 2.2.20 2.2.20
path_provider_foundation - 2.4.3 2.4.3
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
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
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.22.24, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
150
points
267
downloads

Publisher

verified publisherlogicloomer.org

Weekly Downloads

A Flutter package for offline translation without any json or arb files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, google_ml_kit, google_mlkit_translation, hive, path_provider, provider

More

Packages that depend on offline_translator