flutter_biometric_change_detector
1.1.0, released 7 months ago by nabrajkhadka.com.np
Detects biometric authentication changes on Android and iOS
What it does
This plugin checks whether the device’s biometric data (fingerprint or Face/Touch ID) has changed since the last check. It uses native APIs to compare stored biometric state and reports VALID, CHANGED, or INVALID status.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to react to biometric changes in your authentication flow
- Your app requires a secure re‑authentication after biometric data is updated
Skip it when
- You only need to perform a one‑time biometric authentication
- Your app does not need to monitor biometric changes
Strengths
- Leverages native key invalidation and LAContext domain state
- No additional native code required
- Supports both Android and iOS
Weaknesses
- Android support limited to fingerprint; face unlock may not trigger key invalidation
- Requires API level 23+ on Android
- iOS detection relies on stored domain state, may need manual persistence
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add dependency to pubspec.yaml. No extra permissions or native configuration needed.
import 'package:flutter_biometric_change_detector/flutter_biometric_change_detector.dart';
Future<void> check() async {
final status = await FlutterBiometricChangeDetector.detectBiometricChange();
if (status == AuthChangeStatus.CHANGED) {
// handle biometric change
}
}Alternatives
Packages that do the same job and could replace flutter_biometric_change_detector.
- local_auth_android
Android implementation of the local_auth plugin for biometric authentication.
83Compare - local_auth_darwin
iOS/macOS implementation of the local_auth plugin
83Compare - local_auth
Flutter plugin for on‑device authentication using biometrics, PIN, pattern or passcode.
90Compare - local_auth_windows
Windows implementation of local_auth for biometric authentication
79Compare
Works with
Packages commonly used together with flutter_biometric_change_detector: ones it builds on, ones built on it, and its own family.