adv_camera 3.1.0 copy "adv_camera: ^3.1.0" to clipboard
adv_camera: ^3.1.0 copied to clipboard

An advanced camera with focus (with focus rectangle) and zoom feature.

46
likes
75/ 140
pub points
82%
popularity

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

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

10/10 points: Provide a valid pubspec.yaml

0/5 points: Provide a valid README.md

Links in `README.md` should be well formed Unable to parse 5 image links.

README.md:3:160

  ╷
3 │ <p><em>Note</em>: This plugin use <a href="https://developer.android.com/guide/topics/media/camera">android.hardware.Camera</a>, I have tried to migrate it to <a href="%5Bhttps://developer.android.com/reference/android/hardware/camera2/package-summary%5D(https://developer.android.com/reference/android/hardware/camera2/package-summary)">android.hardware.Camera2</a> in development branch, but with lack of understandings I found out so many inconsistency and find it kinda waste of time since Android is developing their new camera <a href="%5Bhttps://developer.android.com/training/camerax%5D(https://developer.android.com/training/camerax)">CameraX</a>. So until CameraX has released its stable version, I think I will still use this.</p>
  │                                                                                                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

partial
Provide documentation
10 / 20trigger folding of the section

0/10 points: 20% or more of the public API has dartdoc comments

10 out of 68 API elements (14.7 %) 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: adv_camera, adv_camera.AdvCamera, adv_camera.AdvCamera.AdvCamera, adv_camera.AdvCamera.bestPictureSize, adv_camera.AdvCamera.cameraPreviewRatio.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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:adv_camera/adv_camera.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:adv_camera/adv_camera.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:adv_camera/adv_camera.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:adv_camera/adv_camera.dart that declares support for platforms: Android, iOS.
failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

Found 12 issues. Showing the first 2:

ERROR: The type 'AppLifecycleState' is not exhaustively matched by the switch cases since it doesn't match 'AppLifecycleState.hidden'.

lib/lifecycle_handler.dart:19:5

   ╷
19 │     switch (state) {
   │     ^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/lifecycle_handler.dart

WARNING: The member 'setState' can only be used within instance members of subclasses of 'package:flutter/src/widgets/framework.dart'.

lib/controller.dart:71:21

   ╷
71 │     _advCameraState.setState(() {});
   │                     ^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/controller.dart

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

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
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
sky_engine - 0.0.99 0.0.99
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

Analyzed with Pana 0.22.3, Flutter 3.19.5, Dart 3.3.3.

Check the analysis log for details.

46
likes
75
pub points
82%
popularity

Publisher

unverified uploader

An advanced camera with focus (with focus rectangle) and zoom feature.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on adv_camera