NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev
Step-based face liveness checks for Flutter with ML Kit: blink, smile, head turn and nod with stable multi-frame validation, quality and identity checks.
Latest stable
0.3.0
Last release 8 days ago
26 Nov 2026
Ships unpredictably
gaps range from 8 days to 1.8 years
Nearly every release is documented
notes for 8 of 8 stable releases
1 version withdrawn
withdrawn after publishing
2 years old
9 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
More challenge types and custom steps. Additive release: existing flows behave the same.
More challenge types and custom steps. Additive release: existing flows behave the same.
⚠️ Exhaustive switches: RecognitionStep gained 16 values and
FaceGuidance 6. A switch over them without a default / _ branch no
longer compiles. Add one (see the README migration section). Future minor
versions may add more values.
New steps (all in the pure-Dart StepValidator / LivenessEngine, with
the same baseline, quality, identity and stability rules):
tiltHeadLeft, tiltHeadRight: roll relative to the baseline
(TiltDetectionThreshold, 20°). The maxRoll quality limit is lifted for
these steps.winkLeftEye, winkRightEye: one eye closed while the other stays open
(WinkDetectionThreshold).doubleBlink: N blinks within a window (MultiBlinkDetectionThreshold,
2 blinks in 3 s).closeEyes: eyes closed for a duration, then opened
(CloseEyesDetectionThreshold, 1 s to 6 s).lookStraight, holdStill: frontal pose held for a duration; holdStill
also limits movement (HoldStillDetectionThreshold). Exempt from the
static-face soft check.moveCloser, moveAway: face width relative to the baseline
(FaceDistanceChangeThreshold, ×1.25 / ×0.8). The face-size quality limit
in the moving direction is lifted.lookUpLeft, lookUpRight, lookDownLeft, lookDownRight: combined yaw
and pitch (DiagonalLookDetectionThreshold).neutralFace: serious face (NeutralFaceDetectionThreshold).custom + RecognitionStepItem.custom(id:, title:, predicate:, icon:):
app-defined steps that run through the same pipeline. The predicate
receives the current FaceMetrics and the baseline.openMouth was not added: it would need contours (which disable
tracking and identity checks) or the coarse nose/mouth landmarks, which
also move with the head pitch. FaceMetrics.noseToMouthRatio is exposed
to build it as a custom step after validating it on devices.Other additions
thresholdToCheck works for every new step (angle, probability, count,
seconds or ratio).FaceGuidance values with Portuguese and English texts:
tiltMoreLeft, tiltMoreRight, keepEyesClosed, blinkAgain,
comeCloser, goFarther. Diagonal looks ask for the missing direction.StepValidator.hint() and requiredFramesFor(). progress() and
thresholdFor() cover every step.DetectionTexts.stepTitles (portugueseStepTitles,
englishStepTitles) and stepTitle(). An empty title uses them.RecognitionStepItem.icon,
DetectionStyle.showStepIcons and stepIconColor.LivenessEngine.shuffleSteps() and
LivenessOptions.keepFinalHoldStepsLast (default true): trailing
lookStraight / holdStill steps stay last when shuffling.RecognitionStepKind extension (usesEyes, isTimed, usesRoll,
isStill, isDiagonal).invertYaw now mirrors every left/right signal (yaw, roll and the eyes).Your coding agent can read these notes before it upgrades. Set up the MCP server →
Focus: more accurate and reliable liveness validation. The public API is backward compatible, but the validation is stricter by default. Use LivenessO
Focus: more accurate and reliable liveness validation. The public API is
backward compatible, but the validation is stricter by default. Use
LivenessOptions.legacy() for the 0.1.x behavior. See "Migration from 0.1.x
to 0.2.0" in the README.
Accuracy
LivenessEngine, shared by Android and iOS:
requiredConsecutiveFrames
(default 3), with optional minHoldDuration and EMA smoothing.faceChangedPolicy) and a
face-lost tolerance with faceLostPolicy (restartFlow, restartStep,
fail).minSmileIncrease).maxAngleJump).shuffleSteps, stepTimeout, and a soft "too static face"
signal.LivenessOptions(), .strict(), .legacy().FaceMetrics.fromFace: turnLeft is the
user's left on both platforms, with an invertYaw escape hatch.StepValidator gained baselines, progress, thresholdFor and blink
duration limits (all opt-in; the existing behavior is unchanged).Results and feedback
AnimatedFaceDetection.faceDetectWithResult and DetectionConfig.onResult
return a FaceDetectionResult: failure reason (cancelled, timeout,
flowTimeout, stepTimeout, faceLost, faceChanged, multipleFaces,
cameraError, captureError), per-step StepResult (timestamps,
duration, baseline, metrics, frames, per-step photo) and LivenessStats.DetectionConfig.onFeedback with FaceGuidance (moveCloser,
multipleFaces, turnMoreLeft, holdStill, ...). The guidance banner is now
shown on iOS too (showFeedbackBanner).DetectionTexts fields for every guidance, in Portuguese and English,
and DetectionTexts.guidance().FaceMetrics now has headEulerAngleZ, trackingId, boundingBox
(FaceBox) and copyWith.Other
minGoodFaceDistance / maxGoodFaceDistance no longer default to 60/85.
When both are set, they replace the face-size ratio check (Android).success.json and completed.json Lottie assets
(about 180 KB).LivenessEngine.Breaking changes (see "Migration from 0.0.x to 0.1.0" in the README):
Breaking changes (see "Migration from 0.0.x to 0.1.0" in the README):
minSdk 24 and iOS 15.5. On
Flutter 3.44+ google_mlkit_face_detection 1.x is resolved, which uses
Swift Package Manager on iOS; older Flutter versions get ML Kit 0.12-0.14
(CocoaPods).BlinkDetectionThreshold.reopenProbability).FaceExt extension that was exported by accident.DetectionStyle.backgroudMessageColor is deprecated (it never had an
effect); use stepCardColor / stepTextColor.Fixes
turnRight completed immediately when a HeadTurnDetectionThreshold
was configured.StreamController was single-subscription and could throw
"Stream has already been listened to" on rebuilds; events were added after
it was closed.deactivate (now in dispose) and the
camerawesome state was disposed twice.setState/Navigator.pop could be called after dispose, and the flow could
pop twice (close button + timeout / photo).maxFlowDuration used a periodic timer and was ignored on iOS.PageController of the steps overlay was never disposed; a reset during a
step transition could jump to the wrong step.configure validated the previous dashValues instead of the new one; the
dot size was used as stroke width instead of radius; dashed paths were
accumulated across contours.|| instead of &&); fromMap used
0.0 instead of the defaults for missing values.CapturedImage equality compared imagesPath by identity.config.steps was mutated in place (and crashed with const lists).RecognitionStepItem.detectionColor and thresholdToCheck had no effect.New
DetectionConfig: texts (DetectionTexts, Portuguese default and
DetectionTexts.english()), onStepCompleted, onError, onTimeout.DetectionStyle: stepCardColor, stepTextColor, progressBarColor,
circleBorderColor, validDistanceColor, invalidDistanceColor,
closeButtonColor, closeButtonIconColor, loadingIndicatorColor.NodDetectionThreshold for nodUp / nodDown.cameraZoom support on iOS.StepValidator, FaceMetrics and evaluateFaceDistance.style is optional in faceDetect and the platform pages;
RecognitionStepItem.isCompleted is optional; models have const
constructors.Maintenance
camera >=0.11.1 <0.13.0, google_mlkit_face_detection
>=0.12.0 <2.0.0, equatable >=2.0.5 <4.0.0, animate_do ^5.1.0,
lottie ^3.1.2, camerawesome ^2.5.0, flutter_lints ^6.0.0 (dev).repository, issue_tracker, topics and platforms to the
pubspec and a .pubignore.Configure circle animation to camera view
Add new propertie cameraZoom from settings
- Add Step nodUp and nodDown
- Fix layout and checks
- Update licence and Readme
- First Release
One column per month.