xapptor_translation 0.0.3 copy "xapptor_translation: ^0.0.3" to clipboard
xapptor_translation: ^0.0.3 copied to clipboard

Translation module to use Google translation services and save values ​​in local storage.

1
likes
90/ 140
pub points
0%
popularity

We analyzed this package 8 hours ago, and awarded it 90 pub points (of a possible 140):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

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.

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.

failed
Provide documentation
0 / 20trigger folding of the section

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.

OK
Platform support
20 / 20trigger folding of the section

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
partial
Pass static analysis
40 / 50trigger folding of the section

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

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

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
Package Constraint Compatible Latest
_flutterfire_internals - 1.0.2 1.3.32
animated_text_kit - 4.2.2 4.2.2
archive - 3.4.10 3.4.10
async - 2.11.0 2.11.0
auto_size_text_pk - 3.0.0 3.0.0
barcode - 2.2.7 2.2.7
boolean_selector - 2.1.1 2.1.1
characters - 1.3.0 1.3.0
clock - 1.1.1 1.1.1
cloud_firestore_platform_interface - 5.7.7 6.2.2
cloud_firestore_web - 2.8.10 3.12.2
collection - 1.18.0 1.18.0
convert - 3.1.1 3.1.1
crypto - 3.0.3 3.0.3
device_info_plus - 3.2.4 10.1.0
device_info_plus_linux - 2.1.1 5.0.0
device_info_plus_macos - 2.2.3 5.0.0
device_info_plus_platform_interface - 2.6.1 7.0.0
device_info_plus_web - 2.1.0 5.0.0
device_info_plus_windows - 2.1.1 6.0.0
fake_async - 1.3.1 1.3.1
ffi - 1.2.1 2.1.2
file - 6.1.4 7.0.0
firebase - 9.0.3 9.0.3
firebase_analytics - 8.3.4 10.10.4
firebase_analytics_platform_interface - 2.0.1 3.10.5
firebase_analytics_web - 0.3.0+1 0.5.7+4
firebase_auth - 3.11.2 4.19.4
firebase_auth_platform_interface - 6.10.1 7.2.5
firebase_auth_web - 4.6.1 5.11.4
firebase_core - 1.24.0 2.30.1
firebase_core_platform_interface - 4.8.0 5.0.0
firebase_core_web - 1.7.3 2.16.0
flutter_test - 0.0.0 0.0.0
flutter_web_plugins - 0.0.0 0.0.0
fluttericon - 2.0.0 2.0.0
geocoding - 2.2.2 3.0.0
geocoding_android - 3.3.0 3.3.0
geocoding_ios - 2.3.0 3.0.1
geocoding_platform_interface - 3.2.0 3.2.0
geolocator - 7.7.1 11.0.0
geolocator_android - 2.1.0 4.5.4
geolocator_apple - 1.2.2 2.3.7
geolocator_platform_interface - 2.3.6 4.2.2
geolocator_web - 2.0.6 3.0.0
google_fonts - 2.3.3 6.2.1
http_parser - 4.0.2 4.0.2
image - 3.1.3 4.1.7
intl - 0.17.0 0.19.0
js - 0.6.7 0.7.1
leak_tracker - 10.0.0 10.0.5
leak_tracker_flutter_testing - 2.0.1 3.0.5
leak_tracker_testing - 2.0.1 3.0.1
matcher - 0.12.16+1 0.12.16+1
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
mime - 1.0.5 1.0.5
package_info_plus_linux - 1.0.5 2.0.0
package_info_plus_macos - 1.3.0 2.0.0
package_info_plus_platform_interface - 1.0.2 3.0.0
package_info_plus_web - 1.0.6 2.0.0
package_info_plus_windows - 1.0.5 3.0.0
palette_generator - 0.3.3+3 0.3.3+3
path - 1.9.0 1.9.0
path_parsing - 1.0.1 1.0.1
path_provider - 2.0.15 2.1.3
path_provider_android - 2.2.4 2.2.4
path_provider_foundation - 2.3.2 2.3.2
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.0.7 2.2.1
pdf - 3.8.4 3.10.8
permission_handler - 8.3.0 11.3.1
permission_handler_platform_interface - 3.12.0 4.2.1
petitparser - 5.4.0 6.0.2
platform - 3.1.4 3.1.4
plugin_platform_interface - 2.1.8 2.1.8
pointycastle - 3.9.0 3.9.0
printing - 5.9.3 5.12.0
qr - 3.0.1 3.0.1
qr_code_scanner - 0.5.2 1.0.1
share_plus - 3.1.0 9.0.0
share_plus_linux - 2.0.4 3.0.1
share_plus_macos - 2.1.0 3.0.1
share_plus_platform_interface - 2.1.0 4.0.0
share_plus_web - 2.0.4 3.1.0
share_plus_windows - 2.0.3 4.0.0
shared_preferences_android - 2.2.2 2.2.2
shared_preferences_foundation - 2.3.5 2.3.5
shared_preferences_linux - 2.3.2 2.3.2
shared_preferences_platform_interface - 2.3.2 2.3.2
shared_preferences_web - 2.3.0 2.3.0
shared_preferences_windows - 2.3.2 2.3.2
sky_engine - 0.0.99 0.0.99
smooth_page_indicator - 1.1.0 1.1.0
source_span - 1.10.0 1.10.0
stack_trace - 1.11.1 1.11.1
stream_channel - 2.1.2 2.1.2
string_scanner - 1.2.0 1.2.0
syncfusion_flutter_core - 19.4.56 25.1.41
syncfusion_flutter_xlsio - 19.4.56-beta 25.1.41
syncfusion_officecore - 19.4.56-beta 25.1.41
term_glyph - 1.2.1 1.2.1
test_api - 0.6.1 0.7.1
typed_data - 1.3.2 1.3.2
url_launcher - 6.2.6 6.2.6
url_launcher_android - 6.3.1 6.3.1
url_launcher_ios - 6.2.5 6.2.5
url_launcher_linux - 3.1.1 3.1.1
url_launcher_macos - 3.1.0 3.1.0
url_launcher_platform_interface - 2.3.2 2.3.2
url_launcher_web - 2.3.1 2.3.1
url_launcher_windows - 3.1.1 3.1.1
uuid - 3.0.7 4.4.0
vector_math - 2.1.4 2.1.4
vm_service - 13.0.0 14.2.1
web - 0.5.1 0.5.1
webview_flutter - 2.8.0 4.7.0
webview_flutter_android - 2.10.4 3.16.0
webview_flutter_platform_interface - 1.9.5 2.10.0
webview_flutter_wkwebview - 2.9.5 3.13.0
win32 - 2.6.1 5.4.0
xapptor_logic - 0.0.3 0.0.3
xapptor_router - 0.0.2 0.0.2
xapptor_ui - 0.0.3 0.0.3
xdg_directories - 1.0.4 1.0.4
xml - 5.4.1 6.5.0

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.

1
likes
90
pub points
0%
popularity

Publisher

verified publisherxapptor.com

Translation module to use Google translation services and save values ​​in local storage.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

cloud_firestore, flutter, http, package_info_plus, pointer_interceptor, shared_preferences, universal_platform, xapptor_auth

More

Packages that depend on xapptor_translation