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), padding: const EdgeInsets.only(left: 50, right: 50),
child: Text( child: Text(
TranslationBase.of(context).EROnlineCheckInTapOnCheckIn, 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), mHeight(16),
@ -226,7 +226,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
padding: const EdgeInsets.only(left: 50, right: 50), padding: const EdgeInsets.only(left: 50, right: 50),
child: Text( child: Text(
TranslationBase.of(context).EROnlineCheckInHoldPhoneInstruction, 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), mHeight(16),
@ -272,7 +272,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
padding: const EdgeInsets.only(left: 50, right: 50), padding: const EdgeInsets.only(left: 50, right: 50),
child: Text( child: Text(
TranslationBase.of(context).EROnlineCheckInWaitTurnInstruction, 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( : Row(
children: [ children: [
Expanded( // Expanded(
flex: 1, // flex: 1,
child: DefaultButton( // child: DefaultButton(
TranslationBase.of(context).checkinOptions, // TranslationBase.of(context).checkinOptions,
() { // () {
// Navigator.push(context, FadePage(page: EROnlineCheckInNFCQRLocation(projectID: 15))).then((value) {}); // // Navigator.push(context, FadePage(page: EROnlineCheckInNFCQRLocation(projectID: 15))).then((value) {});
//
if (_supportsNFC) { // if (_supportsNFC) {
Future.delayed(const Duration(milliseconds: 500), () { // Future.delayed(const Duration(milliseconds: 500), () {
showNfcReader(context, onNcfScan: (String nfcId) { // showNfcReader(context, onNcfScan: (String nfcId) {
Future.delayed(const Duration(milliseconds: 100), () { // Future.delayed(const Duration(milliseconds: 100), () {
print(nfcId); // print(nfcId);
getProjectIDFromNFC(nfcId, false); // getProjectIDFromNFC(nfcId, false);
}); // });
}, onCancel: () { // }, onCancel: () {
Navigator.of(context).pop(); // Navigator.of(context).pop();
}); // });
}); // });
} else { // } else {
//NFCNotSupported // //NFCNotSupported
AppToast.showErrorToast(message: TranslationBase.of(context).NFCNotSupported, localContext: context); // AppToast.showErrorToast(message: TranslationBase.of(context).NFCNotSupported, localContext: context);
} // }
}, // },
color: CustomColors.green, // color: CustomColors.green,
), // ),
), // ),
mWidth(12), // mWidth(12),
Expanded( Expanded(
flex: 1, flex: 1,
child: DefaultButton( child: DefaultButton(

Loading…
Cancel
Save