@ -20,6 +20,7 @@ import 'package:mohem_flutter_app/generated/locale_keys.g.dart';
import ' package:mohem_flutter_app/models/basic_member_information_model.dart ' ;
import ' package:mohem_flutter_app/models/generic_response_model.dart ' ;
import ' package:mohem_flutter_app/models/get_mobile_login_info_list_model.dart ' ;
import ' package:mohem_flutter_app/ui/dialogs/id/business_card_dialog.dart ' ;
import ' package:mohem_flutter_app/ui/dialogs/id/employee_digital_id_dialog.dart ' ;
import ' package:mohem_flutter_app/widgets/button/default_button.dart ' ;
import ' package:mohem_flutter_app/widgets/dialogs/dialogs.dart ' ;
@ -58,15 +59,23 @@ class _VerifyLastLoginScreenState extends State<VerifyLastLoginScreen> {
Widget build ( BuildContext context ) {
mobileLoginInfoListModel ? ? = ModalRoute . of ( context ) ! . settings . arguments as GetMobileLoginInfoListModel ;
String empName = AppState ( ) . isArabic ( context ) ? AppState ( ) . memberInformationList ! . eMPLOYEEDISPLAYNAMEAr ! : AppState ( ) . memberInformationList ! . eMPLOYEEDISPLAYNAMEEn ! ;
print ( " selectedFlag1: " + mobileLoginInfoListModel ! . loginType . toString ( ) ) ;
return Scaffold (
appBar: AppBar (
backgroundColor: Colors . transparent ,
/ / leading: IconButton (
/ / icon: const Icon ( Icons . arrow_back_ios , color: MyColors . darkIconColor ) ,
/ / onPressed: ( ) = > Navigator . pop ( context ) ,
/ / ) ,
actions: [ Center ( child: " Employee Digital ID " . toText12 ( color: MyColors . textMixColor , isUnderLine: true ) . onPress ( ( ) { showMDialog ( context , child: EmployeeDigitialIdDialog ( ) ) ; } ) ) , 21. width ] ,
automaticallyImplyLeading: false ,
title: ( mobileLoginInfoListModel ? . businessCardPrivilege ? ? false )
? LocaleKeys . viewBusinessCard . tr ( ) . toText12 ( color: MyColors . textMixColor , isUnderLine: true ) . onPress ( ( ) {
showMDialog ( context , child: BusinessCardDialog ( ) ) ;
} )
: null ,
actions: [
Center (
child: LocaleKeys . employeeDigitalID . tr ( ) . toText12 ( color: MyColors . textMixColor , isUnderLine: true ) . onPress ( ( ) {
showMDialog ( context , child: EmployeeDigitialIdDialog ( ) ) ;
} ) ) ,
21. width
] ,
) ,
body: Column (
children: [
@ -224,7 +233,6 @@ class _VerifyLastLoginScreenState extends State<VerifyLastLoginScreen> {
Widget _loginOptionButton ( String _title , String _icon , int _flag , int ? _loginIndex ) {
bool isDisable = ( ( _flag = = 3 & & ! checkBiometricIsAvailable ( BiometricType . face ) ) | | ( _flag = = 4 & & ! checkBiometricIsAvailable ( BiometricType . fingerprint ) ) ) ;
print ( " $ _title : $ isDisable " ) ;
return InkWell (
onTap: isDisable
? null