|
|
|
|
@ -77,8 +77,8 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
children: [
|
|
|
|
|
if (!isNeedVerifyWithFaceIDAndBiometrics) getButton(3),
|
|
|
|
|
if (!isNeedVerifyWithFaceIDAndBiometrics) getButton(2),
|
|
|
|
|
getButton(4),
|
|
|
|
|
if (!isNeedVerifyWithFaceIDAndBiometrics) getButton(4),
|
|
|
|
|
getButton(2),
|
|
|
|
|
getButton(1),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
@ -537,7 +537,7 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
|
// isMoreOption = true;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if (_flag == 2 || _flag == 3) {
|
|
|
|
|
if (_flag == 3 || _flag == 4) {
|
|
|
|
|
bool authenticateWithFaceAndTouchID = await loginWithFaceIDAndBiometrics();
|
|
|
|
|
if (!authenticateWithFaceAndTouchID) {
|
|
|
|
|
return;
|
|
|
|
|
@ -585,11 +585,11 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
|
case 1:
|
|
|
|
|
return _loginOptionButton(LocaleKeys.verifyThroughSMS.tr(), 'assets/images/login/verify_sms.svg', flag, null);
|
|
|
|
|
case 2:
|
|
|
|
|
return _loginOptionButton(LocaleKeys.verifyThroughFingerprint.tr(), 'assets/images/login/verify_thumb.svg', flag, BiometricType.fingerprint.index);
|
|
|
|
|
return _loginOptionButton(LocaleKeys.verifyThroughWhatsapp.tr(), 'assets/images/login/verify_whatsapp.svg', flag, null);
|
|
|
|
|
case 3:
|
|
|
|
|
return _loginOptionButton(LocaleKeys.verifyThroughFace.tr(), 'assets/images/login/verify_face.svg', flag, BiometricType.face.index);
|
|
|
|
|
case 4:
|
|
|
|
|
return _loginOptionButton(LocaleKeys.verifyThroughWhatsapp.tr(), 'assets/images/login/verify_whatsapp.svg', flag, null);
|
|
|
|
|
return _loginOptionButton(LocaleKeys.verifyThroughFingerprint.tr(), 'assets/images/login/verify_thumb.svg', flag, BiometricType.fingerprint.index);
|
|
|
|
|
default:
|
|
|
|
|
return const SizedBox();
|
|
|
|
|
}
|
|
|
|
|
@ -612,7 +612,7 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
|
await LoginApiClient().checkMobileAppVersion();
|
|
|
|
|
await LoginApiClient().memberLogin(AppState().getUserName!, AppState().password!);
|
|
|
|
|
BasicMemberInformationModel? memberInformationModel = await LoginApiClient()
|
|
|
|
|
.mohemmSendActivationCodeByOTPNotificationType(checkBiometricIsAvailable(BiometricType.fingerprint) ? 1 : 0, AppState().memberLoginList?.pMOBILENUMBER, _flag, AppState().getUserName);
|
|
|
|
|
.mohemmSendActivationCodeByOTPNotificationType(0, AppState().memberLoginList?.pMOBILENUMBER, _flag, AppState().getUserName);
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
OtpDialog(
|
|
|
|
|
context,
|
|
|
|
|
|