pic_translator 1.0.3+4 copy "pic_translator: ^1.0.3+4" to clipboard
pic_translator: ^1.0.3+4 copied to clipboard

A Flutter plugin for translating text in images from one language to another. It extracts text from images using ML Kit and overlays the translated text on the original image

120/ 160
pub points
1
downloads

We analyzed this package 6 days 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

Failed to verify repository URL.

pubspec.yaml from the repository has no repository or homepage URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: pic_translator,
    • contains a version property, and,
    • does not contain a publish_to property.

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.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

OUT: Documenting pic_translator... Discovering libraries... Linking elements... Precaching local docs for 1296195 elements... Initialized dartdoc with 1897 libraries Generating docs for library pic_translator.dart from package:pic_translator/pic_translator.dart... Generating docs for library main.dart from package:pic_translator/main.dart... Generating docs for library tranlation.dart from package:pic_translator/tranlation.dart... Documented 3 public libraries in 75.1 seconds ERR: warning: ambiguous reexport of pic_translator_widget.PicTranslatorWidget, canonicalization candidates: (pic_translator, pic_translator) -> pic_translator (confidence 0.000) from pic_translator_widget.PicTranslatorWidget: (file:///tmp/pana_FSIYGN/lib/src/pic_translator_widget.dart:9:7) pic_translator: 2.210 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) pic_translator: 2.210 - (_Reason.samePackage (+1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) Use {@canonicalFor pic_translator_widget.PicTranslatorWidget} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library will be displayed in navigation for the relevant pages. The flag [34 more lines]

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 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:pic_translator/pic_translator.dart that imports:
  • package:pic_translator/src/pic_translator_widget.dart that imports:
  • package:google_ml_kit/google_ml_kit.dart that imports:
  • package:google_ml_kit/src/vision.dart that imports:
  • package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:pic_translator/pic_translator.dart that imports:
  • package:pic_translator/src/pic_translator_widget.dart that imports:
  • package:google_ml_kit/google_ml_kit.dart that imports:
  • package:google_ml_kit/src/vision.dart that imports:
  • package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:pic_translator/pic_translator.dart that imports:
  • package:pic_translator/src/pic_translator_widget.dart that imports:
  • package:google_ml_kit/google_ml_kit.dart that imports:
  • package:google_ml_kit/src/vision.dart that imports:
  • package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:pic_translator/pic_translator.dart that imports:
  • package:pic_translator/src/pic_translator_widget.dart that imports:
  • package:google_ml_kit/google_ml_kit.dart that imports:
  • package:google_ml_kit/src/vision.dart that imports:
  • package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart that declares support for platforms: Android, iOS.
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 5 issues. Showing the first 2:

INFO: 'withOpacity' is deprecated and shouldn't be used. Use .withValues() to avoid precision loss.

lib/src/pic_translator_widget.dart:509:53

    ╷
509 │                       color: theme.placeholderColor.withOpacity(0.5),
    │                                                     ^^^^^^^^^^^
    ╵

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

INFO: 'translate' is deprecated and shouldn't be used. Use translateByVector3, translateByVector4, or translateByDouble instead.

lib/src/pic_translator_widget.dart:708:13

    ╷
708 │           ..translate(-position.dx * (scale - 1), -position.dy * (scale - 1))
    │             ^^^^^^^^^
    ╵

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

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
cupertino_icons ^1.0.8 1.0.8 1.0.8
google_fonts ^6.2.1 6.3.3 8.0.2
google_ml_kit ^0.20.0 0.20.1 0.21.0
image ^4.5.3 4.8.0 4.8.0
image_picker ^1.1.2 1.2.1 1.2.1
path_provider ^2.1.5 2.1.5 2.1.5
permission_handler ^11.4.0 11.4.0 12.0.1
share_plus ^10.1.4 10.1.4 12.0.1
translator ^1.0.3+1 1.0.4+1 1.0.4+1
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 4.0.9 4.0.9
async - 2.13.0 2.13.0
characters - 1.4.1 1.4.1
code_assets - 1.0.0 1.0.0
collection - 1.19.1 1.19.1
cross_file - 0.3.5+2 0.3.5+2
crypto - 3.0.7 3.0.7
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
file_selector_linux - 0.9.4 0.9.4
file_selector_macos - 0.9.5 0.9.5
file_selector_platform_interface - 2.7.0 2.7.0
file_selector_windows - 0.9.3+5 0.9.3+5
fixnum - 1.1.1 1.1.1
flutter_plugin_android_lifecycle - 2.0.33 2.0.33
glob - 2.1.3 2.1.3
google_mlkit_barcode_scanning - 0.14.2 0.14.2
google_mlkit_commons - 0.11.1 0.11.1
google_mlkit_digital_ink_recognition - 0.14.2 0.14.2
google_mlkit_entity_extraction - 0.15.3 0.15.3
google_mlkit_face_detection - 0.13.2 0.13.2
google_mlkit_face_mesh_detection - 0.4.2 0.4.2
google_mlkit_image_labeling - 0.14.2 0.14.2
google_mlkit_language_id - 0.13.1 0.13.1
google_mlkit_object_detection - 0.15.1 0.15.1
google_mlkit_pose_detection - 0.14.1 0.14.1
google_mlkit_selfie_segmentation - 0.10.1 0.10.1
google_mlkit_smart_reply - 0.13.1 0.13.1
google_mlkit_text_recognition - 0.15.1 0.15.1
google_mlkit_translation - 0.13.1 0.13.1
hooks - 1.0.2 1.0.2
http - 1.6.0 1.6.0
http_parser - 4.1.2 4.1.2
image_picker_android - 0.8.13+14 0.8.13+14
image_picker_for_web - 3.1.1 3.1.1
image_picker_ios - 0.8.13+6 0.8.13+6
image_picker_linux - 0.2.2 0.2.2
image_picker_macos - 0.2.2+1 0.2.2+1
image_picker_platform_interface - 2.11.1 2.11.1
image_picker_windows - 0.2.2 0.2.2
logging - 1.3.0 1.3.0
material_color_utilities - 0.13.0 0.13.0
meta - 1.17.0 1.18.1
mime - 2.0.0 2.0.0
native_toolchain_c - 0.17.5 0.17.5
objective_c - 9.3.0 9.3.0
path - 1.9.1 1.9.1
path_provider_android - 2.2.22 2.2.22
path_provider_foundation - 2.6.0 2.6.0
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
permission_handler_android - 12.1.0 13.0.1
permission_handler_apple - 9.4.7 9.4.7
permission_handler_html - 0.1.3+5 0.1.3+5
permission_handler_platform_interface - 4.3.0 4.3.0
permission_handler_windows - 0.2.1 0.2.1
petitparser - 7.0.2 7.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
posix - 6.5.0 6.5.0
pub_semver - 2.2.0 2.2.0
share_plus_platform_interface - 5.0.2 6.1.0
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
url_launcher_linux - 3.2.2 3.2.2
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.4.2 2.4.2
url_launcher_windows - 3.1.5 3.1.5
uuid - 4.5.3 4.5.3
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
win32 - 5.15.0 6.0.0
xdg_directories - 1.1.0 1.1.0
xml - 6.6.1 6.6.1
yaml - 3.1.3 3.1.3

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

Found 4 issues. Showing the first 2:

The constraint `^6.2.1` on google_fonts does not support the stable version `7.0.0`.

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

The constraint `^0.20.0` on google_ml_kit does not support the stable version `0.21.0`.

Try running dart pub upgrade --major-versions google_ml_kit 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.10, Flutter 3.41.2, Dart 3.11.0.

Check the analysis log for details.

Weekly downloads

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

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for translating text in images from one language to another. It extracts text from images using ML Kit and overlays the translated text on the original image

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter, google_fonts, google_ml_kit, image, image_picker, path_provider, permission_handler, share_plus, translator

More

Packages that depend on pic_translator