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/ 160
pub points
528
downloads

We analyzed this package 9 days ago, and awarded it 75 pub points (of a possible 160):

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 64 API elements (15.6 %) 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.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

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

failed
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.

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 15 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

failed
Support up-to-date dependencies
20 / 40trigger 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.4.0
collection - 1.19.0 1.19.1
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
sky_engine - 0.0.0 0.0.0
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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • NON_EXHAUSTIVE_SWITCH_STATEMENT - lib/lifecycle_handler.dart:19:5 - The type 'AppLifecycleState' is not exhaustively matched by the switch cases since it doesn't match 'AppLifecycleState.hidden'.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

46
likes
75
points
528
downloads

Publisher

unverified uploader

Weekly Downloads

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