How maojiu-bb/biometric_authorization works
Biometric Authorization is a Flutter plugin for checking biometric capability and enrollment, listing available biometric types, and authenticating or stopping authentication on Android, iOS, and macOS. The documented user workflow is an app invoking the Dart API and receiving a result from platform-specific biometric support; authentication can use system UI or custom UI, with Android also offering a dialog option. Native entry points and Android manager/UI relationships are shown in the supplied excerpts or index. Dart internals and iOS wiring were not sampled, so those connections are omitted or marked unverified.
Main entry points: biometric_authorization_method_channel.dart Method channel · BiometricAuthorizationManager.kt Authorization manager · Classes/BiometricAuthorization.swift iOS authorization · Classes/BiometricAuthorization.swift macOS authorization
Components 17
Flutter API
- Biometric API
lib/biometric_authorization.dart - Platform interface
lib/biometric_authorization_platform_interface.dart - Method channel
lib/biometric_authorization_method_channel.dart - Biometric types
lib/biometric_type.dart
Android
- Android plugin
android/src/main/kotlin/com/maojiu/biometric_authorization/BiometricAuthorizationPlugin.kt - Authorization manager
android/src/main/kotlin/com/maojiu/biometric_authorization/BiometricAuthorizationManager.kt - Custom bottom sheet
android/src/main/kotlin/com/maojiu/biometric_authorization/BiometricAuthBottomSheet.kt - Fingerprint dialog
android/src/main/kotlin/com/maojiu/biometric_authorization/FingerprintDialogFragment.kt - Dialog UI
android/src/main/kotlin/com/maojiu/biometric_authorization/FingerprintAuthDialog.kt
iOS
- iOS plugin
ios/Classes/BiometricAuthorizationPlugin.swift - iOS authorization
ios/Classes/BiometricAuthorization.swift - Custom iOS UI
ios/Classes/BiometricAuthView.swift
macOS
- macOS plugin
macos/Classes/BiometricAuthorizationPlugin.swift - macOS authorization
macos/Classes/BiometricAuthorization.swift - Custom macOS UI
macos/Classes/BiometricAuthView.swift
Other components
- Flutter app
- Device biometrics
Connections 17
- Flutter app → Biometric API: calls
README.md - Biometric API → Platform interface: delegates to
- Platform interface → Method channel: dispatches via
- Method channel → Android plugin: platform call
- Method channel → iOS plugin: platform call
- Method channel → macOS plugin: platform call
- Android plugin → Authorization manager: routes to
android/src/main/kotlin/com/maojiu/biometric_authorization/BiometricAuthorizationPlugin.kt - Authorization manager → Custom bottom sheet: uses
android/src/main/kotlin/com/maojiu/biometric_authorization/BiometricAuthorizationManager.kt - Authorization manager → Fingerprint dialog: uses
android/src/main/kotlin/com/maojiu/biometric_authorization/BiometricAuthorizationManager.kt - Fingerprint dialog → Dialog UI: hosts
android/src/main/kotlin/com/maojiu/biometric_authorization/FingerprintDialogFragment.kt - Authorization manager → Device biometrics: authenticates with
android/src/main/kotlin/com/maojiu/biometric_authorization/BiometricAuthorizationManager.kt - iOS plugin → iOS authorization: routes to
- iOS authorization → Custom iOS UI: presents custom UI
ios/Classes/BiometricAuthorization.swift - iOS authorization → Device biometrics: checks and authenticates
ios/Classes/BiometricAuthorization.swift - macOS plugin → macOS authorization: routes to
macos/Classes/BiometricAuthorizationPlugin.swift - macOS authorization → Custom macOS UI: presents custom UI
macos/Classes/BiometricAuthorization.swift - macOS authorization → Device biometrics: checks and authenticates
macos/Classes/BiometricAuthorization.swift