biometric_shield_ui library
BiometricShield Flutter UI layer.
Provides reactive widgets and Material UI handlers for biometric auth. Import this to access:
- BiometricBuilder — reactive widget for auth state
- BiometricGate — convenience wrapper for "gate access" pattern
- MaterialFallbackHandler — Material UI for fallbacks
- BiometricTheme and BiometricStrings — customization
import 'package:biometric_shield/biometric_shield_ui.dart';
Classes
- AuthAuthenticated
- Authentication succeeded and session is active.
- AuthAuthenticating
- Authentication is currently in progress.
- AuthFailed
- Authentication failed.
- AuthIdle
- Idle state — no authentication in progress.
- AuthState
- Auth state sealed class for BiometricBuilder.
- BiometricBuilder
- Reactive widget that rebuilds when biometric auth state changes.
- BiometricGate
- A convenience widget that gates access to its child behind biometric auth.
- BiometricStrings
- String overrides for all user-facing text in the SDK.
- BiometricTheme
- Visual customization model for all SDK-owned UI surfaces.
- CustomFallbackCallbacks
- Callbacks passed to the custom fallback builder.
- MaterialFallbackHandler
- Default Material fallback UI handler for BiometricShield.
Typedefs
- CustomFallbackBuilder = Widget Function(BuildContext context, CustomFallbackCallbacks callbacks)
- Callback signature for custom PIN/password builder.