did_change_authlocal
1.0.1, released 6 months ago by darthvm.dev
Detects biometric data changes like added fingerprints or Face ID to prevent unauthorized access.
What it does
A Flutter plugin that monitors biometric enrollment changes on Android and iOS devices. It uses native event streams and lifecycle observers to alert your app if a user has added or removed a face or fingerprint since the last check.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to protect high-security apps from unauthorized biometric enrollment.
- You need real-time streams or one-shot checks for biometric modifications.
Skip it when
- You only need standard biometric authentication without tracking subsequent hardware configuration changes.
Strengths
- Native monitoring via Kotlin Coroutines and Swift without Dart-side lifecycle hacks.
- Persistent status tracking until explicitly acknowledged.
- Cross-platform support for both iOS and Android.
Weaknesses
- Android face recognition detection depends on manufacturer Class 3 Strong biometric implementation.
- Requires platform-specific setup and configuration.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires minimum SDK API 23 for Android and iOS 12.0 deployment target.
import 'package:did_change_authlocal/did_change_authlocal.dart';
final subscription = DidChangeAuthLocal.instance.onBiometricChanged.listen((status) {
if (status == AuthLocalStatus.changed) {
// Handle biometric change
}
});Alternatives
Packages that do the same job and could replace did_change_authlocal.
- local_auth
Choose local_auth if you only need standard biometric authentication prompts rather than tracking underlying biometric data changes.
90Compare
Works with
Packages commonly used together with did_change_authlocal: ones it builds on, ones built on it, and its own family.