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.
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.
- flutter_line_sdk
Flutter plugin to access native LINE SDKs for LINE Login integration.
86Compare - auth0_flutter
Auth0 SDK for Flutter to integrate Auth0 authentication into mobile, desktop, and web apps.
90Compare - smile_id
Official Smile ID SDK for real-time digital KYC, identity verification, and onboarding.
71Compare - logto_dart_sdk
Official Logto Flutter SDK for OAuth2 authentication flows.
65Compare
Works with
Packages commonly used together with flutter_face_liveness: ones it builds on, ones built on it, and its own family.
- path_providerflutter_face_liveness depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- imageflutter_face_liveness depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- shared_preferencesflutter_face_liveness depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- providerflutter_face_liveness depends on itA lightweight wrapper around InheritedWidget for state management
- cameraflutter_face_liveness depends on itFlutter plugin to preview, capture photos/video and stream camera images.
- google_mlkit_face_detectionflutter_face_liveness depends on itFlutter plugin to use Google's ML Kit Face Detection on iOS and Android.
- tflite_flutterflutter_face_liveness depends on itTensorFlow Lite Flutter plugin provides an easy, flexible, and fast Dart API to integrate TFLite models in flutter apps across mobile and desktop platforms.
- google_mlkit_face_mesh_detectionflutter_face_liveness depends on itFlutter plugin for Google's ML Kit Face Mesh Detection to generate 3D face meshes.