Skip to content

Commit

Permalink
readme changes and 1.0.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kalismeras61 committed Jan 4, 2019
1 parent 084dd1d commit 9feb255
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ This package gives you beautiful pass code page for using both android and ios.
<img src="https://www.yasinilhan.com/passcode/1.png" width="300" height="600" title="Screen Shoot">

## Finger Print Usage
First, be sure you should ensure that you add the `local_auth` package as a dependency.
https://pub.dartlang.org/packages/local_auth

iOS Integration
Note that this plugin works with both TouchID and FaceID. However, to use the latter, you need to also add:
```
Expand All @@ -36,7 +39,7 @@ You should ensure that you add the `flutter_lock_screen` as a dependency in your

```yaml
dependencies:
flutter_lock_screen: '^1.0.4'
flutter_lock_screen: '^1.0.5'
```
Than you can use it with below example.
Expand Down
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class _PassCodeScreenState extends State<PassCodeScreen> {
bool isFingerprint;

Future<Null> biometrics() async {
// be sure you install local_auth package as a dependency
final LocalAuthentication auth = new LocalAuthentication();
bool authenticated = false;

Expand Down Expand Up @@ -43,6 +44,7 @@ class _PassCodeScreenState extends State<PassCodeScreen> {
fingerPrintImage: "images/fingerprint.png",
showFingerPass: true,
fingerFunction: biometrics,
numColor: Colors.blue,
fingerVerify: isFingerprint,
borderColor: Colors.white,
showWrongPassDialog: true,
Expand Down

0 comments on commit 9feb255

Please sign in to comment.