smart_liveliness_detection 0.3.0
smart_liveliness_detection: ^0.3.0 copied to clipboard
This package helps you verify that a real person is present in front of the camera, not a photo, video, or mask.
Changelog #
0.3.0 February 21, 2026 #
New Features #
Voice Guidance & Accessibility
- Added
VoiceGuidanceConfig— fully configurable TTS settings (language, volume, speech rate, pitch, repeat interval) - Added
VoiceGuidanceService— debounced TTS wrapper built onflutter_ttsthat prevents audio flooding from ~30 fps camera callbacks - Voice guidance speaks: initial instruction, face centering feedback, each challenge instruction, and completion/failure result
- Fine-grained control flags:
speakPositioningFeedback,speakChallengeInstructions,speakCompletion - Two convenience presets:
VoiceGuidanceConfig.minimal()(no centering speech) andVoiceGuidanceConfig.accessibility()(slower rate, shorter repeat interval) - Exported
VoiceGuidanceConfigfrom the top-level package barrel - Zero overhead when disabled —
VoiceGuidanceServiceis only instantiated whenvoiceGuidance?.enabled == true
Futuristic UI Painter Styles
- Added 13 new animated canvas overlay painter styles selectable via
LivenessStyleenum:quantum— pulsing energy rings with particle scatter effectliquidMetal— flowing chrome shimmer with metallic sheencosmos— deep-space star field with nebula gradienthologram— cyan holographic scan lines and gridsingularity— gravitational lens distortion vortexsynapse— neural network node-and-edge animationkinetic— motion-blur speed lines and momentum trailsprism— rainbow light refraction prismatic effectobsidian— volcanic glass dark sheen with ember glowmonolith— stark geometric brutalist framingchronos— clockwork gears and time-dial overlayfloating— soft levitating bubble particlessumi— Japanese ink-wash calligraphic brushwork
Futuristic Oval Overlay (FuturisticOvalOverlay)
- Style-matched animated oval face frame with per-style border color, glow, and corner HUD brackets
- Rotating progress ring that fills as liveness challenges are completed
- Animated scan-line sweep across the face region
Liveness Style Picker (LivenessStylePicker)
- New bottom-sheet widget for switching painter styles at runtime
- Live animated mini-previews of all 13 styles rendered inside the picker
Challenge Hint Widget Enhancements
- Added
ChallengeHintStyleenum with 5 visual styles:plain,glass,futuristic,minimal,neon - Added
ChallengeHintAnimationenum with 4 entrance animations:scaleIn,slideUp,bounceIn,flipIn - Hint widget now respects both style and animation on every challenge transition
Dependencies #
- Added
flutter_tts: ^4.2.0
Platform Setup #
- Android: Added
android.intent.action.TTS_SERVICE<queries>intent toAndroidManifest.xmlfor Android 11+ package visibility - iOS: Configured
AVAudioSessionwith.playbackcategory and.mixWithOthersoption inAppDelegate.swiftso TTS audio is heard even when the ring/silent switch is off
0.2.3 November 26, 2025 #
- Bug fixing and improvements:
-
- Minor bug fixes
Version 0.2.2- November 25, 2025 #
- Improvement and new features:
-
- Challenge hint animations: Display GIF/Lottie animations to guide users through challenges
-
- Customizable hint positions: Choose from multiple positions (top center, bottom center, corners)
-
- Per-challenge hint configuration: Configure hints individually for each challenge type
-
- Optional custom animations: Users can provide their own GIF or Lottie files
-
- Flexible hint display: Enable/disable hints globally or per challenge
-
- Default hint animations: Built-in GIFs for blink, smile, nod, and head rotation challenges
Version 0.2.1- November 24, 2025 #
- Bug fixing, improvements and new features:
-
This version has several improvements in anti-spoofing techniques:
-
Anti-Spoofing Result Map
-
Screen Glare Detection
-
Motion Correlation Check
-
Face Contour Analysis (Mask Detection)
-
Details:
-
Bug fixing: Ignoring wrong error message (errorProcessing) after session.isComplete.
-
Bug fixing: Fixing glare detection method and adding option to enable/disable it.
-
Improving verifyMotionCorrelation method. Now checking both X and Y axes.
-
Adding params to enable/disable motion correlation detection.
-
Adding mask detection feature by detection face contours (The user can choose to enable/disable this feature, as well as the number of contours detected. The user can also choose which types of challenges will be checked).
-
Anti-spoofing settings: Screen reflection detection and missing facial contour detection no longer block liveness detection.
-
Anti-spoofing detection is configured in the metadata under antiSpoofingDetection flags (Anti-Spoofing Result Map), without preventing successful results.
0.2.0 October 25, 2025 #
- Added support for new liveness challenges: "Raise Eyebrows" and "Open Mouth"
- Improved face detection accuracy with updated ML models
- Enhanced UI customization options for better theming
- Fixed minor bugs and improved overall performance
0.1.3 April 25, 2025 #
- Google ML Kit upgraded to version 0.11.0
- Bug fixes and improvements
0.1.1 April 24, 2025 #
- Bug fixes and improvements
0.1.0 April 24, 2025 #
- Bug fixes and improvements
- Android fix initialization fix
0.0.1-beta.5 April 23, 2025 #
- Bug fixes and improvements
- Android fix initialization fix
0.0.1 Initial Release (April 15, 2025) #
- Initial release of the Face Liveness Detection package
- Features included:
- Multiple liveness challenge types (blinking, smiling, head turns, nodding)
- Random challenge sequence generation
- Face centering guidance with visual feedback
- Anti-spoofing measures
- Customizable UI with theming support
- Animated progress indicators and overlays
- Optional image capture capability