How naoki0719/flutter_screen_lock works
Flutter Screen Lock is a UI library for collecting and confirming passcodes, unlocking a screen, and optionally invoking biometric authentication. The documented flow starts when an app calls a lock API; the user enters a passcode, and the app receives an unlock or confirmation callback. Passcode creation, retry/cancellation behavior, keyboard input, and UI customization are additional capabilities. No source excerpts were supplied, so relationships below rely only on README examples and descriptions; internal call paths are not asserted.
Main entry points: functions.dart Lock APIs · screen_lock.dart Lock screen · input_controller.dart Input controller · key_pad_config.dart Keypad config
Components 13
Passcode Flow
- Lock APIs
lib/src/functions.dart - Lock screen
lib/src/screen_lock.dart - Input controller
lib/src/input_controller.dart
Input and Display
- Keypad
lib/src/layout/key_pad.dart - Keypad buttons
lib/src/layout/key_pad_button.dart - Passcode display
lib/src/layout/secrets.dart
Customization
- Keypad config
lib/src/configurations/key_pad_config.dart - Button config
lib/src/configurations/key_pad_button_config.dart - Screen config
lib/src/configurations/screen_lock_config.dart - Secret config
lib/src/configurations/secrets_config.dart - Secret styling
lib/src/configurations/secret_config.dart
Authentication
- Local biometrics
Other components
- Host app
Connections 8
- Host app → Lock APIs: opens lock
README.md - Lock APIs → Lock screen: shows screen
README.md - Host app → Input controller: controls confirmation
README.md - Host app → Local biometrics: invokes optionally
README.md - Host app → Keypad config: customizes input
README.md - Host app → Screen config: customizes screen
README.md - Host app → Secret config: customizes secrets
README.md - Host app → Button config: styles buttons
README.md