enable face detection.

main_design2.0
Sikander Saleem 2 years ago
parent 5348bc81eb
commit b2bf3c8014

@ -49,8 +49,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 21
targetSdkVersion 34
versionCode 8
versionName '1.2.1'
versionCode 9
versionName '1.2.2'
}
signingConfigs {

@ -46,7 +46,7 @@ class _SettingsPageState extends State<SettingsPage> {
void checkForLocalAuth(bool buttonState) async {
bool authStatus = await _settingProvider.auth.authenticate(
localizedReason: Platform.isAndroid ? "Scan your fingerprint to authenticate" : "Scan with face id to authenticate",
options: AuthenticationOptions(biometricOnly: Platform.isAndroid),
options: AuthenticationOptions(),
authMessages: [
IOSAuthMessages(
cancelButton: 'cancel',

@ -74,7 +74,7 @@ class _SplashPageState extends State<SplashPage> {
Future<bool> checkDualAuthentication() async {
return await _settingProvider.auth.authenticate(
localizedReason: Platform.isAndroid ? "Scan your fingerprint to authenticate" : "Scan with face id to authenticate",
options: AuthenticationOptions(biometricOnly: Platform.isAndroid),
options: AuthenticationOptions(),
);
}

Loading…
Cancel
Save