pic_translator 1.0.2+3
pic_translator: ^1.0.2+3 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
We analyzed this package 11 hours ago, and awarded it 105 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
-
pubspec.yamldoesn't have ahomepageentry. -
pubspec.yamldoesn't have arepositoryentry.
5/5 points: Provide a valid README.md
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` does not contain reference to the current version ("1.0.2+3").
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
10/10 points: Use an OSI-approved license
Detected license: MIT.
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 1296088 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 68.6 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_XNKCQP/lib/src/pic_translator_widget.dart:8: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 [30 more lines]
10/10 points: Package has an example
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.dartthat imports:package:pic_translator/src/pic_translator_widget.dartthat imports:package:google_ml_kit/google_ml_kit.dartthat imports:package:google_ml_kit/src/vision.dartthat imports:package:google_mlkit_text_recognition/google_mlkit_text_recognition.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:pic_translator/pic_translator.dartthat imports:package:pic_translator/src/pic_translator_widget.dartthat imports:package:google_ml_kit/google_ml_kit.dartthat imports:package:google_ml_kit/src/vision.dartthat imports:package:google_mlkit_text_recognition/google_mlkit_text_recognition.dartthat declares support for platforms:Android,iOS.
Package does not support platform `macOS`.
Because:
package:pic_translator/pic_translator.dartthat imports:package:pic_translator/src/pic_translator_widget.dartthat imports:package:google_ml_kit/google_ml_kit.dartthat imports:package:google_ml_kit/src/vision.dartthat imports:package:google_mlkit_text_recognition/google_mlkit_text_recognition.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Web`.
Because:
package:pic_translator/pic_translator.dartthat imports:package:pic_translator/src/pic_translator_widget.dartthat imports:package:google_ml_kit/google_ml_kit.dartthat imports:package:google_ml_kit/src/vision.dartthat imports:package:google_mlkit_text_recognition/google_mlkit_text_recognition.dartthat declares support for platforms:Android,iOS.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 4 issues. Showing the first 2:
WARNING: The value of the local variable 'block' isn't used.
lib/src/pic_translator_widget.dart:151:18
╷
151 │ for (var block in _recognizedText!.blocks) {
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/pic_translator_widget.dart
WARNING: The value of the local variable 'block' isn't used.
lib/src/pic_translator_widget.dart:238:16
╷
238 │ for (var block in recognizedText.blocks) {
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/pic_translator_widget.dart
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 | |
translator |
^1.0.3+1 |
1.0.4+1 | 1.0.4+1 |
Transitive dependencies
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
Found 3 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.
10/10 points: Package supports latest stable Dart and Flutter SDKs
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.4, Dart 3.11.1.
Check the analysis log for details.