flutter login example
this example uses a scrollview, json rest api, navigation, alert pop up, progress indicator, globals, images in a shared asset folder, and 100% shared code. now with the ability to login with faceid, touchid, and fingerprint reader on android.
new features
- auto login
- enhanced security with bio
- menu and logout
- dark mode
- settings page
- auth service
- what’s new page
- remember me toggle
getting started
download or download project to get started.
prerequisites
flutter sdk, android studio or other compatible ide.
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 theuse_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>
sticky auth
you can set the stickyauth
option on the plugin to true so that plugin does not return failure if the app is put to the background by the system. this might happen if the user receives a phone call before they get a chance to authenticate. with stickyauth
set to false, this would result in plugin returning failure result to the dart app. if set to true, the plugin will retry authenticating when the app resumes.
Comments are closed.