xapptor_translation 0.0.3 xapptor_translation: ^0.0.3 copied to clipboard
Translation module to use Google translation services and save values in local storage.
We analyzed this package 8 hours ago, and awarded it 90 pub points (of a possible 140):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository 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: xapptor_translation
, - contains a
version
property, and, - does not contain a
publish_to
property.
- contains
pubspec.yaml
from the repository has no repository
or homepage
URL.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-3-Clause
.
0/10 points: 20% or more of the public API has dartdoc comments
1 out of 20 API elements (5.0 %) 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.
Some symbols that are missing documentation: google_translation_api
, google_translation_api.GoogleTranslationApi
, google_translation_api.GoogleTranslationApi.GoogleTranslationApi
, google_translation_api.GoogleTranslationApi.translate
, headers_api_request
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 4 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Android
- ✓ iOS
- ✓ macOS
- ✓ Web
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:xapptor_translation/google_translation_api.dart
that imports:package:xapptor_auth/get_api_key.dart
that imports:package:cloud_firestore/cloud_firestore.dart
that declares support for platforms:Android
,iOS
,macOS
,Web
.
Package does not support platform `Linux`.
Because:
package:xapptor_translation/google_translation_api.dart
that imports:package:xapptor_auth/get_api_key.dart
that imports:package:cloud_firestore/cloud_firestore.dart
that declares support for platforms:Android
,iOS
,macOS
,Web
.
These issues are present but do not affect the score, because they may not originate in your package:
Package not compatible with platform Web
Because:
package:xapptor_translation/google_translation_api.dart
that imports:package:xapptor_auth/get_api_key.dart
that imports:package:cloud_firestore/cloud_firestore.dart
that imports:package:firebase_core_platform_interface/firebase_core_platform_interface.dart
that imports:package:firebase_core_platform_interface/src/pigeon/test_api.dart
that imports:package:flutter_test/flutter_test.dart
that imports:package:flutter_test/src/widget_tester.dart
that imports:package:flutter_test/src/test_text_input.dart
that imports:package:flutter_test/src/test_text_input_key_handler.dart
that imports:package:flutter_test/src/binding.dart
that imports:package:flutter_test/src/platform.dart
that imports:dart:io
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 34 issues. Showing the first 2:
INFO: The variable name 'original_text' isn't a lowerCamelCase identifier.
lib/google_translation_api.dart:10:35
╷
10 │ Future<String> translate(String original_text) async {
│ ^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/google_translation_api.dart
INFO: Statements in an if should be enclosed in a block.
lib/google_translation_api.dart:13:7
╷
13 │ prefs.setString("target_language", "en");
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/google_translation_api.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
cloud_firestore |
^3.1.6 |
3.5.1 | 4.17.2 |
flutter |
flutter |
0.0.0 | 0.0.0 |
http |
^0.13.3 |
0.13.6 | 1.2.1 |
package_info_plus |
^1.0.6 |
1.4.2 | 8.0.0 |
pointer_interceptor |
^0.9.0+1 |
0.9.3+7 | 0.10.1 |
shared_preferences |
^2.0.8 |
2.2.3 | 2.2.3 |
universal_platform |
^1.0.0+1 |
1.0.0+1 | 1.0.0+1 |
xapptor_auth |
^0.0.3 |
0.0.3 | 0.0.3 |
Transitive dependencies
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
Found 4 issues. Showing the first 2:
The constraint `^3.1.6` on cloud_firestore does not support the stable version `4.0.0`.
Try running dart pub upgrade --major-versions cloud_firestore
to update the constraint.
The constraint `^0.13.3` on http does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions http
to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
Analyzed with Pana 0.22.3
, Flutter 3.19.5
, Dart 3.3.3
.
Check the analysis log for details.