|
|
|
@ -58,116 +58,113 @@ class _VerifyLastLoginScreenState extends State<VerifyLastLoginScreen> {
|
|
|
|
|
),
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: ListView(
|
|
|
|
|
padding: const EdgeInsets.all(21),
|
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
|
children: [
|
|
|
|
|
//12.height,
|
|
|
|
|
if (true)
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.welcomeBack.tr().toText12(),
|
|
|
|
|
mobileLoginInfoListModel!.employeeName!.toText24(isBold: true),
|
|
|
|
|
10.height,
|
|
|
|
|
LocaleKeys.wouldYouLikeToLoginWithCurrentUsername.tr().toText16(),
|
|
|
|
|
Container(
|
|
|
|
|
height: 72,
|
|
|
|
|
margin: const EdgeInsets.only(top: 23, bottom: 23),
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
padding: const EdgeInsets.only(left: 17, right: 12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: const Color(0xffefefef),
|
|
|
|
|
width: 1,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.lastLoginDetails.tr().toText16(),
|
|
|
|
|
DateUtil.formatDateToDate(DateUtil.convertStringToDate(mobileLoginInfoListModel!.editedOn!), false).toText12(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.verificationType.tr().toText10(color: MyColors.grey57Color),
|
|
|
|
|
getVerificationType(mobileLoginInfoListModel!.loginType!).toText12(),
|
|
|
|
|
Expanded(child: SizedBox()),
|
|
|
|
|
DateUtil.formatDateToTime(DateUtil.convertStringToDate(mobileLoginInfoListModel!.editedOn!)).toText12(),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
ListView(
|
|
|
|
|
padding: const EdgeInsets.all(21),
|
|
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
|
|
children: [
|
|
|
|
|
//12.height,
|
|
|
|
|
if (true)
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.welcomeBack.tr().toText12(),
|
|
|
|
|
mobileLoginInfoListModel!.employeeName!.toText24(isBold: true),
|
|
|
|
|
10.height,
|
|
|
|
|
LocaleKeys.wouldYouLikeToLoginWithCurrentUsername.tr().toText16(),
|
|
|
|
|
Container(
|
|
|
|
|
height: 72,
|
|
|
|
|
margin: const EdgeInsets.only(top: 23, bottom: 23),
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
padding: const EdgeInsets.only(left: 17, right: 12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: const Color(0xffefefef),
|
|
|
|
|
width: 1,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
LocaleKeys.pleaseVerify.tr().toText16(),
|
|
|
|
|
GridView(
|
|
|
|
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 13, mainAxisSpacing: 9),
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
padding: const EdgeInsets.only(top: 9),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
getButton(3),
|
|
|
|
|
getButton(4),
|
|
|
|
|
getButton(2),
|
|
|
|
|
getButton(1),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.lastLoginDetails.tr().toText16(),
|
|
|
|
|
DateUtil.formatDateToDate(DateUtil.convertStringToDate(mobileLoginInfoListModel!.editedOn!), false).toText12(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.verificationType.tr().toText10(color: MyColors.grey57Color),
|
|
|
|
|
getVerificationType(mobileLoginInfoListModel!.loginType!).toText12(),
|
|
|
|
|
Expanded(child: SizedBox()),
|
|
|
|
|
DateUtil.formatDateToTime(DateUtil.convertStringToDate(mobileLoginInfoListModel!.editedOn!)).toText12(),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
// else
|
|
|
|
|
// Column(mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
|
|
|
|
|
// Image.asset(
|
|
|
|
|
// 'assets/images/habib-logo.png',
|
|
|
|
|
// height: 90,
|
|
|
|
|
// width: 90,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 23),
|
|
|
|
|
// this.onlySMSBox == false
|
|
|
|
|
// ? Text(
|
|
|
|
|
// TranslationBase.of(context).verifyLoginWith,
|
|
|
|
|
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 25 / 16),
|
|
|
|
|
// )
|
|
|
|
|
// : Text(
|
|
|
|
|
// TranslationBase.of(context).verifyFingerprint2,
|
|
|
|
|
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 25 / 16),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 23),
|
|
|
|
|
// Text(
|
|
|
|
|
// TranslationBase.of(context).pleaseVerify,
|
|
|
|
|
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.64),
|
|
|
|
|
// ),
|
|
|
|
|
// GridView(
|
|
|
|
|
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 13, mainAxisSpacing: 9),
|
|
|
|
|
// physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
// padding: EdgeInsets.only(top: 9),
|
|
|
|
|
// shrinkWrap: true,
|
|
|
|
|
// children: [
|
|
|
|
|
// if (onlySMSBox == false) getButton(3),
|
|
|
|
|
// if (onlySMSBox == false) getButton(2),
|
|
|
|
|
// getButton(1),
|
|
|
|
|
// getButton(4),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ]),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
12.height,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
LocaleKeys.pleaseVerify.tr().toText16(),
|
|
|
|
|
GridView(
|
|
|
|
|
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 13, mainAxisSpacing: 9),
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
padding: const EdgeInsets.only(top: 9),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
children: [
|
|
|
|
|
getButton(3),
|
|
|
|
|
getButton(4),
|
|
|
|
|
getButton(2),
|
|
|
|
|
getButton(1),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
// else
|
|
|
|
|
// Column(mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
|
|
|
|
|
// Image.asset(
|
|
|
|
|
// 'assets/images/habib-logo.png',
|
|
|
|
|
// height: 90,
|
|
|
|
|
// width: 90,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 23),
|
|
|
|
|
// this.onlySMSBox == false
|
|
|
|
|
// ? Text(
|
|
|
|
|
// TranslationBase.of(context).verifyLoginWith,
|
|
|
|
|
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 25 / 16),
|
|
|
|
|
// )
|
|
|
|
|
// : Text(
|
|
|
|
|
// TranslationBase.of(context).verifyFingerprint2,
|
|
|
|
|
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.64, height: 25 / 16),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 23),
|
|
|
|
|
// Text(
|
|
|
|
|
// TranslationBase.of(context).pleaseVerify,
|
|
|
|
|
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2E303A), letterSpacing: -0.64),
|
|
|
|
|
// ),
|
|
|
|
|
// GridView(
|
|
|
|
|
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 13, mainAxisSpacing: 9),
|
|
|
|
|
// physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
// padding: EdgeInsets.only(top: 9),
|
|
|
|
|
// shrinkWrap: true,
|
|
|
|
|
// children: [
|
|
|
|
|
// if (onlySMSBox == false) getButton(3),
|
|
|
|
|
// if (onlySMSBox == false) getButton(2),
|
|
|
|
|
// getButton(1),
|
|
|
|
|
// getButton(4),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ]),
|
|
|
|
|
],
|
|
|
|
|
).expanded,
|
|
|
|
|
DefaultButton(
|
|
|
|
|
LocaleKeys.useAnotherAccount.tr(),
|
|
|
|
|
() => {
|
|
|
|
|
//Navigator.of(context).pushNamed(LOGIN_TYPE)
|
|
|
|
|
() {
|
|
|
|
|
Navigator.pushNamedAndRemoveUntil(context, AppRoutes.login, (Route<dynamic> route) => false,arguments: false);
|
|
|
|
|
},
|
|
|
|
|
).insideContainer,
|
|
|
|
|
],
|
|
|
|
|