|
|
|
|
@ -58,13 +58,9 @@ class _VerifyLastLoginScreenState extends State<VerifyLastLoginScreen> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
if (ModalRoute.of(context)!.settings.arguments != null) {
|
|
|
|
|
mobileLoginInfoListModel ??= ModalRoute
|
|
|
|
|
.of(context)!
|
|
|
|
|
.settings
|
|
|
|
|
.arguments as GetMobileLoginInfoListModel;
|
|
|
|
|
mobileLoginInfoListModel ??= ModalRoute.of(context)!.settings.arguments as GetMobileLoginInfoListModel;
|
|
|
|
|
// String empName = AppState().isArabic(context) ? AppState().memberInformationList!.eMPLOYEEDISPLAYNAMEAr! : AppState().memberInformationList!.eMPLOYEEDISPLAYNAMEEn!;
|
|
|
|
|
String empName = mobileLoginInfoListModel!.employeeName!;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
|
@ -140,7 +136,7 @@ class _VerifyLastLoginScreenState extends State<VerifyLastLoginScreen> {
|
|
|
|
|
LocaleKeys.pleaseVerify.tr().toText16(),
|
|
|
|
|
if (isNeedVerifyWithFaceIDAndBiometrics) LocaleKeys.pleaseVerifyForBio.tr().toText12(),
|
|
|
|
|
GridView(
|
|
|
|
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 13, mainAxisSpacing: 9),
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: MediaQuery.of(context).size.width > 400 ? 3 : 2, crossAxisSpacing: 8.5, mainAxisSpacing: 9),
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
padding: const EdgeInsets.only(top: 9),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
@ -398,11 +394,9 @@ class _VerifyLastLoginScreenState extends State<VerifyLastLoginScreen> {
|
|
|
|
|
Utils.handleException(ex, context, null);
|
|
|
|
|
dynamic errorCode = ex;
|
|
|
|
|
if (errorCode.error.errorStatusCode == 699) {
|
|
|
|
|
Future.delayed(const Duration(seconds: 2), ()
|
|
|
|
|
{
|
|
|
|
|
Future.delayed(const Duration(seconds: 2), () {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
Navigator.pushNamedAndRemoveUntil(
|
|
|
|
|
context, AppRoutes.login, (Route<dynamic> route) => false);
|
|
|
|
|
Navigator.pushNamedAndRemoveUntil(context, AppRoutes.login, (Route<dynamic> route) => false);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -419,5 +413,4 @@ class _VerifyLastLoginScreenState extends State<VerifyLastLoginScreen> {
|
|
|
|
|
// // isLoading = isTrue;
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|