flutter_lock_screen
This package gives you beautiful pass code page for using both android and ios.
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:
<key>NSFaceIDUsageDescription</key>
<string>Why is my app authenticating using face id?</string>
to your Info.plist file. Failure to do so results in a dialog that tells the user your app has not been updated to use TouchID.
Android Integration
Update your project's AndroidManifest.xml file to include the USE_FINGERPRINT permissions:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app">
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<manifest>
Usage
It is really easy to use!
You should ensure that you add the flutter_lock_screen
as a dependency in your flutter project.
Than you can use it with below example.