Skip to content
pubscout

flutter_biometric_change_detector

1.1.0, released 7 months ago by nabrajkhadka.com.np

Detects biometric authentication changes on Android and iOS

$ flutter pub add flutter_biometric_change_detector
Source repository

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.

Works with

Packages commonly used together with flutter_biometric_change_detector: ones it builds on, ones built on it, and its own family.