proveface 1.0.2 copy "proveface: ^1.0.2" to clipboard
proveface: ^1.0.2 copied to clipboard

Real-time face liveness detection for Flutter. Blink, smile, and head-turn challenges with passive anti-spoofing. Camera permission handled internally.

120/ 160
pub points
16
downloads

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

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

15 out of 29 API elements (51.7 %) have documentation comments.

Some symbols that are missing documentation: proveface.ProveFaceConfig.ProveFaceConfig.new, proveface.ProveFaceConfig.blinkTimeoutSeconds, proveface.ProveFaceConfig.effectiveSessionTimeout, proveface.ProveFaceConfig.enableBlink, proveface.ProveFaceConfig.enableSmile.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 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:proveface/proveface.dart that imports:
  • package:proveface/src/prove_face_detector.dart that imports:
  • package:permission_handler/permission_handler.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:proveface/proveface.dart that imports:
  • package:proveface/src/prove_face_detector.dart that imports:
  • package:permission_handler/permission_handler.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:proveface/proveface.dart that imports:
  • package:proveface/src/prove_face_detector.dart that imports:
  • package:permission_handler/permission_handler.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:proveface/proveface.dart that imports:
  • package:proveface/src/prove_face_detector.dart that imports:
  • package:permission_handler/permission_handler.dart that declares support for platforms: Android, iOS.
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 12 issues. Showing the first 2:

INFO: Don't put any logic in 'createState'.

lib/src/prove_face_detector.dart:61:45

   ╷
61 │     State<ProveFaceDetector> createState() => Platform.isAndroid
   │ ┌─────────────────────────────────────────────^
62 │ │       ? _ProveFaceDetectorAndroidState()
63 │ │       : _ProveFaceDetectorState();
   │ └─────────────────────────────────^
   ╵

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

INFO: 'WillPopScope' is deprecated and shouldn't be used. Use PopScope instead. The Android predictive back feature will not work with WillPopScope. This feature was deprecated after v3.12.0-1.0.pre.

lib/src/prove_face_detector.dart:1423:12

     ╷
1423 │     return WillPopScope(
     │            ^^^^^^^^^^^^
     ╵

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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
camera ^0.10.0 0.10.6 0.12.1
face_anti_spoofing_detector ^0.0.4 0.0.5 0.0.5
google_mlkit_face_detection ^0.9.0 0.9.0 0.15.1
permission_handler ^8.3.0 8.3.0 13.0.2
Transitive dependencies
Package Constraint Compatible Latest Notes
camera_android - 0.10.11+1 0.10.11+1
camera_avfoundation - 0.9.23+2 0.10.3
camera_platform_interface - 2.13.1 2.13.1
camera_web - 0.3.5+6 0.3.5+6
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
cross_file - 0.3.5+5 0.3.5+5
flutter_plugin_android_lifecycle - 2.0.35 2.0.35
google_mlkit_commons - 0.6.1 0.13.0
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
permission_handler_platform_interface - 3.12.0 4.4.1
plugin_platform_interface - 2.1.8 2.1.8
stream_transform - 2.1.2 2.1.2
vector_math - 2.4.2 2.4.2
web - 1.1.1 1.1.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 3 issues. Showing the first 2:

The constraint `^0.10.0` on camera does not support the stable version `0.11.0`.

Try running dart pub upgrade --major-versions camera to update the constraint.

The constraint `^0.9.0` on google_mlkit_face_detection does not support the stable version `0.10.0`.

Try running dart pub upgrade --major-versions google_mlkit_face_detection to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_ENUM_CONSTANT - lib/src/prove_face_detector.dart:296:32 - There's no constant named 'nv21' in 'ImageFormatGroup'.

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.23.19, Flutter 3.47.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
120
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Real-time face liveness detection for Flutter. Blink, smile, and head-turn challenges with passive anti-spoofing. Camera permission handled internally.

Repository (GitHub)
View/report issues

Topics

#face #liveness #biometrics #camera #anti-spoofing

License

MIT (license)

Dependencies

camera, face_anti_spoofing_detector, flutter, google_mlkit_face_detection, permission_handler

More

Packages that depend on proveface