a_cameras 1.0.9 a_cameras: ^1.0.9 copied to clipboard
A Flutter plugin for accessing camera functionalities across various platforms with a unified API. Currently supports web only.
We analyzed this package 26 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: MIT
.
10/10 points: 20% or more of the public API has dartdoc comments
18 out of 33 API elements (54.5 %) have documentation comments.
Some symbols that are missing documentation: a_cameras
, a_cameras.CameraController
, a_cameras.CameraController.CameraController
, a_cameras.CameraDescription.CameraDescription.fromHelpLib
, a_cameras.CameraDescription.CameraDescription.fromJs
.
10/10 points: Package has an example
20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Web
These platforms are not supported:
Package does not support platform `Windows`.
Because:
package:a_cameras/a_cameras.dart
that declares support for platforms:Android
,iOS
,Web
.
Package does not support platform `Linux`.
Because:
package:a_cameras/a_cameras.dart
that declares support for platforms:Android
,iOS
,Web
.
Package does not support platform `macOS`.
Because:
package:a_cameras/a_cameras.dart
that declares support for platforms:Android
,iOS
,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:a_cameras/a_cameras.dart
that imports:package:a_cameras/src/cameras.dart
that imports:package:a_cameras/src/platforms/interfaces/cameras_platform_interface.dart
that imports:package:a_cameras/src/platforms/implementations/cameras_method_channel.dart
that imports:package:a_cameras/src/platforms/implementations/controller_mobile.dart
that imports:package:a_cameras/src/models/cameras/ios_camera.dart
that imports:package:a_cameras/src/utils/logger/logger_mobile.dart
that imports:package:logger/logger.dart
that imports:package:logger/src/outputs/advanced_file_output_stub.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:a_cameras/a_cameras.dart
that imports:package:a_cameras/src/cameras.dart
that imports:package:a_cameras/src/platforms/interfaces/cameras_platform_interface.dart
that imports:package:a_cameras/src/platforms/implementations/cameras_method_channel.dart
that imports:package:a_cameras/src/platforms/implementations/controller_mobile.dart
that imports:package:a_cameras/src/models/cameras/ios_camera.dart
that imports:package:a_cameras/src/utils/logger/logger_mobile.dart
that imports:package:logger/logger.dart
that imports:package:logger/src/outputs/advanced_file_output_stub.dart
that imports:dart:io
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
0/0 points: Swift Package Manager support
Package does not support the Swift Package Manager on iOS
It does not contain ios/a_cameras/Package.swift
.
This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.
See https://docs.flutter.dev/to/spm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 3 issues. Showing the first 2:
WARNING: The parameter type of '==' operators should be non-nullable.
lib/src/models/camera_description/camera_description.dart:81:12
╷
81 │ operator ==(dynamic other) => other is CameraDescription && other.id == id;
│ ^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/models/camera_description/camera_description.dart
INFO: The variable name '_$$_CameraDescriptionFromJson' isn't a lowerCamelCase identifier.
lib/src/models/camera_description/camera_description.g.dart:9:22
╷
9 │ _$_CameraDescription _$$_CameraDescriptionFromJson(Map<String, dynamic> json) =>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/models/camera_description/camera_description.g.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
camera |
^0.10.5+4 |
0.10.6 | 0.11.0+2 |
camera_platform_interface |
^2.5.2 |
2.8.0 | 2.8.0 |
flutter |
flutter |
0.0.0 | 0.0.0 |
flutter_web_plugins |
flutter |
0.0.0 | 0.0.0 |
freezed_annotation |
^2.4.1 |
2.4.4 | 2.4.4 |
json_annotation |
^4.3.0 |
4.9.0 | 4.9.0 |
logger |
^2.0.2 |
2.5.0 | 2.5.0 |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 |
shared_preferences |
^2.2.1 |
2.3.3 | 2.3.3 |
universal_html |
^2.2.4 |
2.2.4 | 2.2.4 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
async |
- | 2.12.0 | 2.12.0 |
camera_android |
- | 0.10.9+16 | 0.10.9+16 |
camera_avfoundation |
- | 0.9.17+5 | 0.9.17+5 |
camera_web |
- | 0.3.5 | 0.3.5 |
characters |
- | 1.3.0 | 1.3.1 |
charcode |
- | 1.4.0 | 1.4.0 |
collection |
- | 1.18.0 | 1.19.1 |
cross_file |
- | 0.3.4+2 | 0.3.4+2 |
csslib |
- | 1.0.2 | 1.0.2 |
ffi |
- | 2.1.3 | 2.1.3 |
file |
- | 7.0.1 | 7.0.1 |
flutter_plugin_android_lifecycle |
- | 2.0.23 | 2.0.23 |
html |
- | 0.15.5 | 0.15.5 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.16.0 |
path |
- | 1.9.1 | 1.9.1 |
path_provider_linux |
- | 2.2.1 | 2.2.1 |
path_provider_platform_interface |
- | 2.1.2 | 2.1.2 |
path_provider_windows |
- | 2.3.0 | 2.3.0 |
platform |
- | 3.1.6 | 3.1.6 |
shared_preferences_android |
- | 2.3.3 | 2.3.3 |
shared_preferences_foundation |
- | 2.5.3 | 2.5.3 |
shared_preferences_linux |
- | 2.4.1 | 2.4.1 |
shared_preferences_platform_interface |
- | 2.4.1 | 2.4.1 |
shared_preferences_web |
- | 2.4.2 | 2.4.2 |
shared_preferences_windows |
- | 2.4.1 | 2.4.1 |
sky_engine |
- | 0.0.99 | 0.0.99 |
source_span |
- | 1.10.0 | 1.10.0 |
stream_transform |
- | 2.1.0 | 2.1.0 |
term_glyph |
- | 1.2.1 | 1.2.1 |
typed_data |
- | 1.4.0 | 1.4.0 |
universal_io |
- | 2.2.2 | 2.2.2 |
vector_math |
- | 2.1.4 | 2.1.4 |
web |
- | 1.1.0 | 1.1.0 |
xdg_directories |
- | 1.1.0 | 1.1.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^0.10.5+4` on camera does not support the stable version `0.11.0`.
Try running dart pub upgrade --major-versions camera
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.22.15
, Flutter 3.24.4
, Dart 3.5.4
.
Check the analysis log for details.