direction2 0.0.1
direction2: ^0.0.1 copied to clipboard
Get Google Maps Direction Easily
We analyzed this package 12 hours ago, and awarded it 100 pub points (of a possible 140):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
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: MIT
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
0/10 points: 20% or more of the public API has dartdoc comments
- 0 out of 19 API elements (0.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.
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:direction2/direction2.dart
that imports:package:direction2/src/model/Directions.dart
that imports:package:google_maps_flutter/google_maps_flutter.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `Linux`.
Because:
package:direction2/direction2.dart
that imports:package:direction2/src/model/Directions.dart
that imports:package:google_maps_flutter/google_maps_flutter.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `macOS`.
Because:
package:direction2/direction2.dart
that imports:package:direction2/src/model/Directions.dart
that imports:package:google_maps_flutter/google_maps_flutter.dart
that declares support for platforms:Android
,iOS
.
Package does not support platform `Web`.
Because:
package:direction2/direction2.dart
that imports:package:direction2/src/model/Directions.dart
that imports:package:google_maps_flutter/google_maps_flutter.dart
that declares support for platforms:Android
,iOS
.
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `iOS`.
Because:
package:direction2/direction2.dart
that imports:package:direction2/src/model/Directions.dart
that imports:package:google_maps_flutter/google_maps_flutter.dart
that imports:package:google_maps_flutter_android/google_maps_flutter_android.dart
that declares support for platforms:Android
.
20/30 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
INFO: Unused import: 'package:flutter/material.dart'.
lib/src/model/Directions.dart:1:8
╷
1 │ import 'package:flutter/material.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/model/Directions.dart
INFO: Unnecessary braces in a string interpolation.
lib/src/service.dart:13:174
╷
13 │ "https://maps.googleapis.com/maps/api/directions/json?origin=${origin.latitude},${origin.longitude}&destination=${destination.latitude},${destination.longitude}&key=${googleMapApiKey}";
│ ^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/service.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
flutter | flutter | 0.0.0 | 0.0.0 |
flutter_polyline_points | ^1.0.0 | 1.0.0 | 1.0.0 |
google_maps_flutter | ^2.1.1 | 2.2.3 | 2.2.3 |
http | ^0.13.4 | 0.13.5 | 0.13.5 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
async | - | 2.10.0 | 2.10.0 |
characters | - | 1.2.1 | 1.2.1 |
collection | - | 1.17.0 | 1.17.1 |
flutter_plugin_android_lifecycle | - | 2.0.7 | 2.0.7 |
google_maps_flutter_android | - | 2.4.3 | 2.4.3 |
google_maps_flutter_ios | - | 2.1.13 | 2.1.13 |
google_maps_flutter_platform_interface | - | 2.2.5 | 2.2.5 |
http_parser | - | 4.0.2 | 4.0.2 |
js | - | 0.6.5 | 0.6.7 |
material_color_utilities | - | 0.2.0 | 0.2.0 |
meta | - | 1.8.0 | 1.9.0 |
path | - | 1.8.3 | 1.8.3 |
plugin_platform_interface | - | 2.1.3 | 2.1.3 |
sky_engine | - | 0.0.99 | 0.0.99 |
source_span | - | 1.9.1 | 1.9.1 |
stream_transform | - | 2.1.0 | 2.1.0 |
string_scanner | - | 1.2.0 | 1.2.0 |
term_glyph | - | 1.2.1 | 1.2.1 |
typed_data | - | 1.3.1 | 1.3.1 |
vector_math | - | 2.1.4 | 2.1.4 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Package and dependencies are fully migrated to null safety!
Analysed with Pana 0.21.25
, Flutter 3.7.0
, Dart 2.19.0
.