CheckIn button removed as per Mr Rwaid's instructions.

merge-update-with-lab-changes
haroon amjad 1 year ago
parent 65d7f3f9b9
commit 6f0f422adf

@ -180,7 +180,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
padding: const EdgeInsets.only(left: 50, right: 50),
child: Text(
TranslationBase.of(context).EROnlineCheckInTapOnCheckIn,
style: TextStyle(fontSize: 13, fontFamily: (projectViewModel.isArabic ? 'Cairo' : 'Poppins'), fontWeight: FontWeight.w700, color: CustomColors.textDarkColor, letterSpacing: -1.44, height: 35 / 24),
style: TextStyle(fontSize: 13, fontFamily: (projectViewModel.isArabic ? 'Cairo' : 'Poppins'), fontWeight: FontWeight.w600, color: CustomColors.textDarkColor, letterSpacing: -1.44, height: 35 / 24),
),
),
mHeight(16),
@ -226,7 +226,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
padding: const EdgeInsets.only(left: 50, right: 50),
child: Text(
TranslationBase.of(context).EROnlineCheckInHoldPhoneInstruction,
style: TextStyle(fontSize: 13, fontFamily: (projectViewModel.isArabic ? 'Cairo' : 'Poppins'), fontWeight: FontWeight.w700, color: CustomColors.textDarkColor, letterSpacing: -1.44, height: 35 / 24),
style: TextStyle(fontSize: 13, fontFamily: (projectViewModel.isArabic ? 'Cairo' : 'Poppins'), fontWeight: FontWeight.w600, color: CustomColors.textDarkColor, letterSpacing: -1.44, height: 35 / 24),
),
),
mHeight(16),
@ -272,7 +272,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
padding: const EdgeInsets.only(left: 50, right: 50),
child: Text(
TranslationBase.of(context).EROnlineCheckInWaitTurnInstruction,
style: TextStyle(fontSize: 13, color: CustomColors.textDarkColor, fontWeight: FontWeight.w700, fontFamily: (projectViewModel.isArabic ? 'Cairo' : 'Poppins'), letterSpacing: -1.44, height: 35 / 24),
style: TextStyle(fontSize: 13, color: CustomColors.textDarkColor, fontWeight: FontWeight.w600, fontFamily: (projectViewModel.isArabic ? 'Cairo' : 'Poppins'), letterSpacing: -1.44, height: 35 / 24),
),
),
],
@ -368,33 +368,33 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
)
: Row(
children: [
Expanded(
flex: 1,
child: DefaultButton(
TranslationBase.of(context).checkinOptions,
() {
// Navigator.push(context, FadePage(page: EROnlineCheckInNFCQRLocation(projectID: 15))).then((value) {});
if (_supportsNFC) {
Future.delayed(const Duration(milliseconds: 500), () {
showNfcReader(context, onNcfScan: (String nfcId) {
Future.delayed(const Duration(milliseconds: 100), () {
print(nfcId);
getProjectIDFromNFC(nfcId, false);
});
}, onCancel: () {
Navigator.of(context).pop();
});
});
} else {
//NFCNotSupported
AppToast.showErrorToast(message: TranslationBase.of(context).NFCNotSupported, localContext: context);
}
},
color: CustomColors.green,
),
),
mWidth(12),
// Expanded(
// flex: 1,
// child: DefaultButton(
// TranslationBase.of(context).checkinOptions,
// () {
// // Navigator.push(context, FadePage(page: EROnlineCheckInNFCQRLocation(projectID: 15))).then((value) {});
//
// if (_supportsNFC) {
// Future.delayed(const Duration(milliseconds: 500), () {
// showNfcReader(context, onNcfScan: (String nfcId) {
// Future.delayed(const Duration(milliseconds: 100), () {
// print(nfcId);
// getProjectIDFromNFC(nfcId, false);
// });
// }, onCancel: () {
// Navigator.of(context).pop();
// });
// });
// } else {
// //NFCNotSupported
// AppToast.showErrorToast(message: TranslationBase.of(context).NFCNotSupported, localContext: context);
// }
// },
// color: CustomColors.green,
// ),
// ),
// mWidth(12),
Expanded(
flex: 1,
child: DefaultButton(

Loading…
Cancel
Save