app_guards 0.1.0
app_guards: ^0.1.0 copied to clipboard
A solution for adding guards to your Flutter app's navigation easily.
We analyzed this package 5 days ago, and awarded it 120 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
Repository URL doesn't exist.
At the time of the analysis https://gitlab.com/Rodsevich/guards was unreachable. Make sure that the website is reachable via HEAD requests.
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.
10/10 points: 20% or more of the public API has dartdoc comments
54 out of 62 API elements (87.1 %) have documentation comments.
Some symbols that are missing documentation: auto_route, auto_route.AutoRouteGuardSatisfyingPage, auto_route.AutoRouteGuardSatisfyingPage.AutoRouteGuardSatisfyingPage.new, auto_route.GuardsAutoRouteGuard, auto_route.GuardsAutoRouteGuard.GuardsAutoRouteGuard.new.
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
-
✓ Windows
-
✓ Web
These platforms are not supported:
Package does not support platform `Linux`.
Because:
package:app_guards/auto_route.dartthat imports:package:app_guards/guards.dartthat imports:package:app_guards/src/common_guards/camera_guard.dartthat imports:package:permission_handler/permission_handler.dartthat declares support for platforms:Android,iOS,Windows,Web.
Package does not support platform `macOS`.
Because:
package:app_guards/auto_route.dartthat imports:package:app_guards/guards.dartthat imports:package:app_guards/src/common_guards/camera_guard.dartthat imports:package:permission_handler/permission_handler.dartthat declares support for platforms:Android,iOS,Windows,Web.
WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
WARNING: Dead code.
lib/src/common_guards/camera_guard.dart:53:3
╷
53 │ ┌ final status = await Permission.camera.status;
54 │ └ return status.isGranted;
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/common_guards/camera_guard.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
auto_route |
^10.1.0 |
10.3.0 | 11.1.0 | |
permission_handler |
^12.0.0 |
12.0.1 | 12.0.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
material_color_utilities |
- | 0.13.0 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.1 | |
path |
- | 1.9.1 | 1.9.1 | |
permission_handler_android |
- | 13.0.1 | 13.0.1 | |
permission_handler_apple |
- | 9.4.7 | 9.4.7 | |
permission_handler_html |
- | 0.1.3+5 | 0.1.3+5 | |
permission_handler_platform_interface |
- | 4.3.0 | 4.3.0 | |
permission_handler_windows |
- | 0.2.1 | 0.2.1 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^10.1.0` on auto_route does not support the stable version `11.0.0`.
Try running dart pub upgrade --major-versions auto_route 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.0, Dart 3.11.0.
Check the analysis log for details.