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.
Online Demo: https://rodydavis.github.io/flutter_login/
- Auto Login
- Enhanced Security with Bio
- Menu and Logout
- Dark Mode and True Black
- Settings Page
- Auth Service
- What's New Page
- Remember Me Toggle
- Custom Theme
- Scoped Model
- Automatic Json using json_serializable
Clone or Fork Project to get started.
Flutter SDK, Android Studio or Other Compatible IDE.
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.
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>
You can set the stickyAuth
option on the plugin to true so that plugin does not
return failure if the app is put to 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.
- Flutter - Crossplatform App Development Framework
Please submit a pull request if you want to help the project grow. The goal is to be able to fork the project and have a login module for your app complete so that a new project can be started quickly and customized to the user's needs.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Rody Davis - Initial work - Rody Davis
This project is licensed under the MIT License - see the LICENSE.md file for details