Skip to content
pubscout

flutter_face_liveness

3.7.1, released 4 weeks ago by sanjaysharma.info

On-device face liveness detection, anti-spoofing, and Face ID for Flutter apps.

$ flutter pub add flutter_face_liveness
Source repository

What it does

Provides real-time face liveness detection and anti-spoofing challenges like blinks, head turns, and smiles. Features persistent on-device Face ID embeddings using Google ML Kit, TensorFlow Lite, and optional YOLOv8 or SCRFD detectors.

AI-written summary of version 3.7.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need secure, on-device user verification and KYC compliance via face recognition.
  • You want to prevent replay attacks and screen spoofs without routing biometric video to a server.
  • You need passive or active facial authentication flows with persistent local Face ID matching.

Skip it when

  • Your application targets environments below Android API 26 or iOS 13.
  • You require server-side cloud biometric storage rather than secure local device storage.

Strengths

  • Runs entirely on-device with zero server calls for core liveness and replay checks.
  • Multi-signal replay attack detection and 9-signal anti-spoof engine.
  • Supports both active challenge gestures and passive zero-action Face ID sessions.

Weaknesses

  • Requires platform permission setup and specific minimum OS and SDK versions.
  • Large binary or model dependencies (such as TFLite models) downloaded at runtime.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
9

Requires setting camera permissions in AndroidManifest.xml and Info.plist, configuring minSdk 26 for Android, and potentially setting up dependency overrides for tflite_flutter.

FlutterFaceLiveness(
  actions: [
    LivenessAction.blink,
    LivenessAction.turnLeft,
  ],
  config: LivenessConfig(
    randomizeActions: true,
    enableAntiSpoof: true,
  ),
  onSuccess: (result) => print('Success: ${result.sessionId}'),
  onFailed: (reason) => print('Failed: $reason'),
)

Alternatives

Packages that do the same job and could replace flutter_face_liveness.

Works with

Packages commonly used together with flutter_face_liveness: ones it builds on, ones built on it, and its own family.