smart_liveliness_detection library
Classes
- BackgroundGlowPainter
- Background glow that moves and pulses with active item
- BiometricMatcher
- Compares two BiometricTemplates and returns a similarity score.
- BiometricTemplate
- A compact, privacy-preserving biometric template derived from a liveness session. Contains a feature vector that represents the geometric structure of the detected face — it cannot be reversed into a face image.
- Challenge
- Represents a liveness detection challenge that the user must complete
- ChallengeHintConfig
- ChronosPainter
- CosmosPainter
- DepthDetectionConfig
- Configuration for the 3D depth detection anti-spoofing feature (iOS only).
- DepthDetectionResult
- Result from a single ARKit depth analysis frame.
- FaceQualityResult
- Result of a face quality analysis.
- FloatingPainter
- FuturisticAmbientGlow
- An ambient glow layer that can sit behind the camera preview, reacting to which challenge is currently active.
- FuturisticBarPreview
- A standalone preview-only bar — no Provider needed.
- FuturisticLivenessBar
- An animated challenge-progress bar driven by a LivenessController from the ambient Provider context.
- FuturisticOvalOverlay
- A full-screen overlay that draws a futuristic HUD-style oval face frame driven by the active LivenessUiStyle.
- FuturisticTheme
- Theme configuration for futuristic painter effects used in liveness UI.
- HologramPainter
- KineticPainter
- LiquidMetalPainter
- The main liquid metal container with complex deformation
- LivenessConfig
- Configuration class for customizing the Face Liveness Detection package
- LivenessConstants
- LivenessController
- Controller for liveness detection session
- LivenessDetectionScreen
- Main widget for liveness detection
- LivenessDetectionView
- View component of the liveness detection screen
- LivenessMessages
- A class to hold customizable messages for the liveness detection UI.
- LivenessSession
- Represents a liveness detection session
- LivenessStylePicker
- A bottom-sheet widget that lets users choose a LivenessUiStyle.
- LivenessTheme
- Theme configuration for the Face Liveness Detection package
- MonolithPainter
- ObsidianPainter
- PrismPainter
- QuantumPainter
- ScreenFlashConfig
- Configuration for the Screen Flash anti-spoofing test.
- ScreenFlashResult
- Result of the screen-flash anti-spoofing test.
- SingularityPainter
- SumiPainter
- SynapsePainter
- TemplateConfig
- Configuration for biometric template generation.
- Vec2
- VoiceGuidanceConfig
- Configuration for the voice guidance / text-to-speech feature.
Enums
- BiometricAlgorithm
- Algorithm used to produce the biometric feature vector.
- ChallengeHintAnimation
- Entrance/exit animation style for the challenge hint widget.
- ChallengeHintPosition
- ChallengeHintStyle
- Visual container style for the challenge hint GIF guide.
- ChallengeType
- LivenessState
- LivenessUiStyle
- Selects which futuristic painter is used for the liveness progress bar.
Extensions
Functions
-
buildStylePainter(
{required LivenessUiStyle style, required int count, required double animationValue, required double idleTime, required double pressValue, FuturisticTheme? themeOverride, Map< String, Color> customColors = const {}, Map<String, bool> effectToggles = const {}}) → CustomPainter - Builds the correct CustomPainter for a given LivenessUiStyle.
-
lerpDouble(
double a, double b, double t) → double
Typedefs
- BiometricTemplateCallback = void Function(BiometricTemplate template)
- ChallengeCompletedCallback = void Function(ChallengeType challengeType)
-
FaceDetectedCallback
= void Function(ChallengeType challengeType, bool firstChallengePassed, CameraImage image, List<
Face> faces, CameraDescription camera) - FaceNotDetectedCallback = void Function(ChallengeType challengeType, LivenessController controller)
- FaceQualityCallback = void Function(FaceQualityResult result)
-
FinalImageCapturedCallback
= void Function(String sessionId, XFile imageFile, Map<
String, dynamic> metadata) -
LivenessCompletedCallback
= void Function(String sessionId, bool isSuccessful, Map<
String, dynamic> ? metadata)