Skip to content
pubscout

local_auth_android

2.3.0, released 5 weeks ago by flutter.dev

Android implementation of the local_auth plugin for biometric authentication.

WASM-ready
$ flutter pub add local_auth_android
Source repository

What it does

Provides Android-specific implementation for local_auth, allowing apps to authenticate users via biometrics or device credentials. Handles activity changes, permissions, and themes required for local authentication on Android.

AI-written summary of version 2.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using the local_auth package and need its Android implementation details setup.
  • You need to build Android-specific biometric authentication features into your Flutter application.

Skip it when

  • You are building a cross-platform app and should use the higher-level local_auth package instead of depending on this platform-specific package directly.
  • You are targeting non-Android platforms exclusively.

Strengths

  • Endorsed and automatically included when using the main local_auth plugin.
  • Provides native integration with Android FragmentActivity and biometric APIs.

Weaknesses

  • Requires manual Android setup like changing FlutterActivity to FlutterFragmentActivity and adding permissions.
  • Platform-specific to Android only.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
4

Requires updating your AndroidManifest.xml to use FlutterFragmentActivity instead of FlutterActivity, adding the USE_BIOMETRIC permission, and updating your LaunchTheme's parent to a valid Theme.AppCompat theme.

Alternatives

Packages that do the same job and could replace local_auth_android.

Works with

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