I needed liveness detection in a Flutter app two years ago. The options were: pay for a commercial SDK (₹8-15L/year for the ones that actually worked on Indian Android hardware), roll a web-based flow through a WebView (latency kills it on 4G), or wire up Google ML Kit's face detection and write the challenge-response logic myself.
I wrote it myself. That package is livelyness_detection , and it now has 40 likes on pub.dev, a 160/160 quality score, and four separate developers have built derivative packages on top of it. One of those, m7_livelyness_detection , has officially discontinued itself and redirects to mine.
What it actually does
The package runs a camera feed through Google ML Kit's face detection, then walks the user through a sequence of active challenges: blink, turn left, turn right, smile. Each challenge has configurable thresholds ( BlinkDetectionThreshold , SmileDetectionThreshold ) so you can tune sensitivity per use case.…