reusable_ml_detector 1.0.0
reusable_ml_detector: ^1.0.0 copied to clipboard
A reusable ML image detection widget for Flutter using Google ML Kit. Create multi-domain detectors (pets, plants, food, recycling) with simple configuration.
We analyzed this package 9 days ago, and awarded it 140 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
Homepage URL doesn't exist.
At the time of the analysis https://github.com/DayverDelahoz/ml-image-detector-uo312162 was unreachable. Make sure that the website is reachable via HEAD requests.
Repository URL doesn't exist.
At the time of the analysis https://github.com/DayverDelahoz/ml-image-detector-uo312162 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
14 out of 40 API elements (35.0 %) have documentation comments.
Some symbols that are missing documentation: reusable_ml_detector.DetectionConfig.DetectionConfig.new, reusable_ml_detector.DetectionConfig.accentColor, reusable_ml_detector.DetectionConfig.confidenceThreshold, reusable_ml_detector.DetectionConfig.labelIcons, reusable_ml_detector.DetectionConfig.menuIcon.
10/10 points: Package has an example
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:reusable_ml_detector/reusable_ml_detector.dartthat imports:package:reusable_ml_detector/src/services/ml_service.dartthat imports:package:google_mlkit_image_labeling/google_mlkit_image_labeling.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:reusable_ml_detector/reusable_ml_detector.dartthat imports:package:reusable_ml_detector/src/services/ml_service.dartthat imports:package:permission_handler/permission_handler.dartthat declares support for platforms:Android,iOS,Windows,Web.
Package does not support platform `macOS`.
Because:
package:reusable_ml_detector/reusable_ml_detector.dartthat imports:package:reusable_ml_detector/src/services/ml_service.dartthat imports:package:permission_handler/permission_handler.dartthat declares support for platforms:Android,iOS,Windows,Web.
Package does not support platform `Web`.
Because:
package:reusable_ml_detector/reusable_ml_detector.dartthat imports:package:reusable_ml_detector/src/services/ml_service.dartthat imports:package:google_mlkit_image_labeling/google_mlkit_image_labeling.dartthat declares support for platforms:Android,iOS.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 5 issues. Showing the first 2:
INFO: Use 'const' with the constructor to improve performance.
lib/src/models/detection_config.dart:27:12
╷
27 │ return DetectionConfig(
│ ┌────────────^
28 │ │ title: 'Pet Detector',
29 │ │ subtitle: 'Identifica mascotas y animales',
30 │ │ menuIcon: Icons.pets,
31 │ │ primaryColor: Colors.blue,
32 │ │ accentColor: Colors.lightBlue,
33 │ │ confidenceThreshold: 0.6,
34 │ │ relevantKeywords: ['dog', 'cat', 'pet', 'animal', 'perro', 'gato', 'mascota'],
35 │ │ labelIcons: {
36 │ │ 'dog': Icons.pets,
37 │ │ 'cat': Icons.pets,
38 │ │ 'pet': Icons.pets,
39 │ │ 'animal': Icons.cruelty_free,
40 │ │ 'bird': Icons.flutter_dash,
41 │ │ },
42 │ │ );
│ └──^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/models/detection_config.dart
INFO: Use 'const' with the constructor to improve performance.
lib/src/models/detection_config.dart:47:12
╷
47 │ return DetectionConfig(
│ ┌────────────^
48 │ │ title: 'Plant Detector',
49 │ │ subtitle: 'Identifica plantas y flores',
50 │ │ menuIcon: Icons.local_florist,
51 │ │ primaryColor: Colors.green,
52 │ │ accentColor: Colors.lightGreen,
53 │ │ confidenceThreshold: 0.5,
54 │ │ relevantKeywords: ['plant', 'flower', 'tree', 'leaf', 'planta', 'flor', 'árbol'],
55 │ │ labelIcons: {
56 │ │ 'flower': Icons.local_florist,
57 │ │ 'plant': Icons.eco,
58 │ │ 'tree': Icons.park,
59 │ │ 'leaf': Icons.nature,
60 │ │ 'rose': Icons.local_florist,
│ └──────────────────────────────^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/models/detection_config.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
flutter_animate |
^4.5.0 |
4.5.2 | 4.5.2 | |
google_mlkit_image_labeling |
^0.13.0 |
0.13.0 | 0.16.1 | |
image_picker |
^1.1.2 |
1.2.3 | 1.2.3 | |
permission_handler |
^11.0.0 |
11.4.0 | 13.0.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
- | 2.13.1 | 2.13.1 | |
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
cross_file |
- | 0.3.5+5 | 0.3.5+5 | |
file_selector_linux |
- | 0.9.4+1 | 0.9.4+1 | |
file_selector_macos |
- | 0.9.5+1 | 0.9.5+1 | |
file_selector_platform_interface |
- | 2.7.0 | 2.7.0 | |
file_selector_windows |
- | 0.9.3+6 | 0.9.3+6 | |
flutter_plugin_android_lifecycle |
- | 2.0.35 | 2.0.35 | |
flutter_shaders |
- | 0.1.3 | 0.1.3 | |
google_mlkit_commons |
- | 0.9.0 | 0.13.0 | |
http |
- | 1.6.0 | 1.6.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
image_picker_android |
- | 0.8.13+22 | 0.8.13+22 | |
image_picker_for_web |
- | 3.1.1 | 3.1.1 | |
image_picker_ios |
- | 0.8.13+7 | 0.8.13+7 | |
image_picker_linux |
- | 0.2.2 | 0.2.2 | |
image_picker_macos |
- | 0.2.2+1 | 0.2.2+1 | |
image_picker_platform_interface |
- | 2.11.1 | 2.11.1 | |
image_picker_windows |
- | 0.2.2 | 0.2.2 | |
material_color_utilities |
- | 0.13.0 | 0.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
mime |
- | 2.1.0 | 2.1.0 | |
path |
- | 1.9.1 | 1.9.1 | |
permission_handler_android |
- | 12.1.0 | 14.0.0 | |
permission_handler_apple |
- | 9.6.1 | 9.6.1 | |
permission_handler_html |
- | 0.1.4+1 | 0.1.4+1 | |
permission_handler_platform_interface |
- | 4.4.0 | 4.4.0 | |
permission_handler_windows |
- | 0.2.2 | 0.2.2 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
source_span |
- | 1.10.2 | 1.10.2 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.4.2 | 2.4.2 | |
web |
- | 1.1.1 | 1.1.1 | |
yaml |
- | 3.1.4 | 3.1.4 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^0.13.0` on google_mlkit_image_labeling does not support the stable version `0.14.0`.
Try running dart pub upgrade --major-versions google_mlkit_image_labeling to update the constraint.
The constraint `^11.0.0` on permission_handler does not support the stable version `12.0.0`.
Try running dart pub upgrade --major-versions permission_handler 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.19, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.