local_auth_android
2.3.0, released 5 weeks ago by flutter.dev
Android implementation of the local_auth plugin for biometric authentication.
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.
- firebase_auth
Flutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.
99Compare - firebase_auth_web
Web implementation of Firebase Authentication for Flutter
85Compare - biometric_signature
Hardware‑backed biometric signatures and encryption for Flutter apps.
81Compare - extension_google_sign_in_as_googleapis_auth
Creates googleapis_auth AuthClient from GoogleSignIn credentials.
79Compare
Works with
Packages commonly used together with local_auth_android: ones it builds on, ones built on it, and its own family.
- intllocal_auth_android depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- flutter_plugin_android_lifecyclelocal_auth_android depends on itFlutter plugin for accessing Android Lifecycle within other plugins.
- local_auth_darwinSame familyiOS/macOS implementation of the local_auth plugin
- local_auth_windowsSame familyWindows implementation of local_auth for biometric authentication
- google_maps_flutter_androidSame familyAndroid implementation of the google_maps_flutter plugin.
- cameraSame familyFlutter plugin to preview, capture photos/video and stream camera images.
- camera_androidSame familyAndroid implementation of the camera plugin using the Camera2 library.
- image_picker_androidSame familyAndroid implementation of the image_picker plugin for selecting photos and videos.