|
|
|
|
@ -288,9 +288,15 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<void> _getAvailableBiometrics() async {
|
|
|
|
|
|
|
|
|
|
final bool canAuthenticateWithBiometrics = await auth.canCheckBiometrics;
|
|
|
|
|
final bool canAuthenticate =
|
|
|
|
|
canAuthenticateWithBiometrics || await auth.isDeviceSupported();
|
|
|
|
|
|
|
|
|
|
var availableBiometrics;
|
|
|
|
|
try {
|
|
|
|
|
availableBiometrics = await auth.getAvailableBiometrics();
|
|
|
|
|
print(availableBiometrics);
|
|
|
|
|
} on PlatformException catch (e) {
|
|
|
|
|
AppToast.showErrorToast(message: e.message!);
|
|
|
|
|
print(e);
|
|
|
|
|
|