Fingerprint with localAuth - Flutter Explained - Level: Medium

preview_player
Показать описание
In this episode of #FlutterExplained, we want to take a closer look at how we can #authenticate against the device with our Fingerprint. To authenticate against the machine with local_auth is also helpful if you want to #authenticate with other #biometrics like #FaceID or #TouchId.

We will set up an Android Emulator together so that it can recognize a Fingerprint. We take care of the Android specifics to let the emulator know our Fingerprint and last, but not least, we will implement everything to show a stunning dashboard.

 ⭐️⭐️ Helpful Ressources ⭐️⭐️

⭐️⭐️ Timeline ⭐️⭐️
2:30 - Setup the device with a Fingerprint
4:10 - Add an onTap Event on the Column
5:30 - Deep dive into the LocalAuthentication
6:15 - Authenticate against the device
8:30 - Android Specific setup
11:25 - Showtime of the finished solution
11:40 - Outro

⭐️⭐️ Follow me ⭐️⭐️

⭐️⭐️ Support ⭐️⭐️
If you read this so far, thank you once more. If you like to support me, here are some links that could help me a lot.

Buy me a coffee - You are free to donate me a coffee so I can keep up my work.

Amazon Affiliate Link - You buy for the same price and I get a small amount of it.
This leads to an amazing Flutter book that I can recommend to every beginner of flutter

For every developer, a must-have and better said a must-read is the Clean Code book from Uncle Bob.
Рекомендации по теме
Комментарии
Автор

Thanks, I tried a bunch of youtube but was facing the issue. Came across your video. Appreciate the help.

surajgurung
Автор

Hey. Thanks for the demo. But those are everywhere. canCheckBiometrics method is also not needed at all here, all it does is checking if getAvailableBiometrics list is not empty, so we can just use getAvailableBiometrics length. But the biggest question here is how to set a preferred biometric auth method (I am having onePlus 6T phone, it has both fingerprint and face id). It always initiates fingerprint login and never the face unlock screen. Tried to dig, found lots of people who are wondering how to do it. Even if the preferred unlock screen is manually set to face id it will still propose fingerprint use to unlock. if AvailableBiometrics list somehow was used in authenticateWithBiometrics method then it could be implemented. But for now getAvailableBiometrics method is just for the info and has nothing to do with setting the preffered biometric login type ((

VsevolodChapiuk
Автор

Helped A Lot, I implemented this with Pin App Lock, Thankyou

mruduladdipalli
Автор

Hi, Can we activate fingerprint as soon as the app starts without any gesture detector?

Praveenmgupta
Автор

Hi, nice video. May I know, currently Im using flutteractivity in MainActivity.kt. If I converted into FlutterFragmentActivity, there will be some packages cannot workaround huhu. How can I solve this? I have tried to search many times but cannot find the solution as most of the packages that using for biometric is complusory to use FlutterFragmentActivity. Thank you for the time.

nurzarifah
Автор

hi, I am getting this error
Unresolved reference: FlutterFragmentActivity

harshitsachdeva
Автор

I'm not getting the dialog. i just get the fingerprint sensor since i have a on screen fingerprint device it's visible.

naveenrenati
Автор

In my case when i'm touch I have Dialog in my screen and not a "bottom sheet" like in yout app

viniciusalves
Автор

Can somebody help me with this:

I/flutter (15910): PlatformException(auth_in_progress, Authentication in progress, null, null)

shrikantdere
welcome to shbcf.ru