Skip to content

Commit

Permalink
fix exception for onUnlocked
Browse files Browse the repository at this point in the history
  • Loading branch information
naoki0719 committed Jul 28, 2020
1 parent b3b7b7e commit 164a5e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/lock_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ class _LockScreenState extends State<LockScreen> {
widget.showBiometricFirstController.stream.listen((_) {
widget.biometricAuthenticate(context).then((unlocked) {
if (unlocked) {
widget.onUnlocked();
if (widget.onUnlocked != null) {
widget.onUnlocked();
}

Navigator.of(context).pop();
}
});
Expand Down

0 comments on commit 164a5e3

Please sign in to comment.