google_translator 1.0.0
google_translator: ^1.0.0 copied to clipboard
A extension to native flutter widgets witch allows the widget to translate the text using Google Translate API.
We analyzed this package 17 hours ago, and awarded it 130 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
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.
10/10 points: 20% or more of the public API has dartdoc comments
9 out of 24 API elements (37.5 %) have documentation comments.
Some symbols that are missing documentation: google_translator, google_translator.GoogleTranslatorController, google_translator.GoogleTranslatorController.GoogleTranslatorController.new, google_translator.GoogleTranslatorController.apiKey, google_translator.GoogleTranslatorController.init.
10/10 points: Package has an example
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:google_translator/google_translator.dartthat imports:package:dio_http_cache_lts/dio_http_cache_lts.dartthat imports:package:dio_http_cache_lts/src/manager_dio.dartthat imports:package:dio_http_cache_lts/src/core/manager.dartthat imports:package:sqflite/utils/utils.dartthat declares support for platforms:Android,iOS,macOS.
Package does not support platform `Linux`.
Because:
package:google_translator/google_translator.dartthat imports:package:dio_http_cache_lts/dio_http_cache_lts.dartthat imports:package:dio_http_cache_lts/src/manager_dio.dartthat imports:package:dio_http_cache_lts/src/core/manager.dartthat imports:package:sqflite/utils/utils.dartthat declares support for platforms:Android,iOS,macOS.
Package does not support platform `Web`.
Because:
package:google_translator/google_translator.dartthat imports:package:dio_http_cache_lts/dio_http_cache_lts.dartthat imports:package:dio_http_cache_lts/src/manager_dio.dartthat imports:package:dio_http_cache_lts/src/core/manager.dartthat imports:package:sqflite/utils/utils.dartthat declares support for platforms:Android,iOS,macOS.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 14 issues. Showing the first 2:
WARNING: The receiver can't be null, so the null-aware operator '?.' is unnecessary.
lib/controllers/google_translator_controller.dart:30:41
╷
30 │ var window = WidgetsBinding.instance?.window ?? ui.window;
│ ^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/controllers/google_translator_controller.dart
INFO: The part-of directive uses a library name.
lib/components/google_translator_init.dart:1:1
╷
1 │ part of google_translator;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/components/google_translator_init.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
dio |
^4.0.0 |
4.0.6 | 5.9.1 | |
dio_http_cache_lts |
^0.4.0 |
0.4.1 | 0.4.2 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_fe_analyzer_shared |
- | 93.0.0 | 96.0.0 | |
analyzer |
- | 10.0.1 | 10.2.0 | |
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
boolean_selector |
- | 2.1.2 | 2.1.2 | |
build |
- | 4.0.4 | 4.0.4 | |
build_config |
- | 1.3.0 | 1.3.0 | |
characters |
- | 1.4.1 | 1.4.1 | |
checked_yaml |
- | 2.0.4 | 2.0.4 | |
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.7 | 3.0.7 | |
dart_style |
- | 3.1.6 | 3.1.6 | |
file |
- | 7.0.1 | 7.0.1 | |
glob |
- | 2.1.3 | 2.1.3 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
json_annotation |
- | 4.11.0 | 4.11.0 | |
json_serializable |
- | 6.13.0 | 6.13.0 | |
logging |
- | 1.3.0 | 1.3.0 | |
matcher |
- | 0.12.18 | 0.12.18 | |
material_color_utilities |
- | 0.13.0 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.1 | |
package_config |
- | 2.2.0 | 2.2.0 | |
path |
- | 1.9.1 | 1.9.1 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
pubspec_parse |
- | 1.5.0 | 1.5.0 | |
quiver |
- | 3.2.2 | 3.2.2 | |
source_gen |
- | 4.2.0 | 4.2.0 | |
source_helper |
- | 1.3.10 | 1.3.10 | |
source_span |
- | 1.10.2 | 1.10.2 | |
sqflite |
- | 2.4.2 | 2.4.2 | |
sqflite_android |
- | 2.4.2+2 | 2.4.2+2 | |
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 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
stream_channel |
- | 2.1.4 | 2.1.4 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
synchronized |
- | 3.4.0 | 3.4.0 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
test_api |
- | 0.7.9 | 0.7.9 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
watcher |
- | 1.2.1 | 1.2.1 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^4.0.0` on dio does not support the stable version `5.0.0`.
Try running dart pub upgrade --major-versions dio 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.2, Dart 3.11.0.
Check the analysis log for details.