@ -93,26 +93,26 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
) ,
mHeight ( 6 ) ,
Text (
" What is Online Check-In? " ,
TranslationBase . of ( context ) . whatIsOnlineCheckIn ,
maxLines: 1 ,
style: TextStyle (
fontSize: 20 , fontFamily: ( projectViewModel . isArabic ? ' Cairo ' : ' Poppins ' ) , fontWeight: FontWeight . w700 , color: Color ( 0xff2B353E ) , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
Text (
" online check-in lets patients fill out forms, share insurance details, and book appointments online, making their visit smoother and quicker. " ,
TranslationBase . of ( context ) . EROnlineCheckInDesc1 ,
style: TextStyle ( fontSize: 14 , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
mHeight ( 16 ) ,
Text (
" How can i use Online Check-In? " ,
maxLines: 1 ,
style: TextStyle (
fontSize: 20 , fontFamily: ( projectViewModel . isArabic ? ' Cairo ' : ' Poppins ' ) , fontWeight: FontWeight . w700 , color: Color ( 0xff2B353E ) , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
Text (
" o nline check-in lets patients fill out forms, share insurance details, and book appointments online, making their visit smoother and quicker." ,
style: TextStyle ( fontSize: 14 , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
/ / Text (
/ / TranslationBase . of ( context ) . EROnlineCheckInHow ,
/ / maxLines: 1 ,
/ / style: TextStyle (
/ / fontSize: 20 , fontFamily: ( projectViewModel . isArabic ? ' Cairo ' : ' Poppins ' ) , fontWeight: FontWeight . w700 , color: Color ( 0xff2B353E ) , letterSpacing: - 1.44 , height: 35 / 24 ) ,
/ / ) ,
/ / Text (
/ / " O nline check-in lets patients fill out forms, share insurance details, and book appointments online, making their visit smoother and quicker." ,
/ / style: TextStyle ( fontSize: 14 , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
/ / ) ,
] ,
) ,
) ,
@ -164,7 +164,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
Padding (
padding: const EdgeInsets . only ( left: 50 , right: 50 ) ,
child: Text (
" Tap On " ,
TranslationBase . of ( context ) . EROnlineCheckInTapOn ,
maxLines: 1 ,
style: TextStyle (
fontSize: 20 ,
@ -178,8 +178,8 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
Padding (
padding: const EdgeInsets . only ( left: 50 , right: 50 ) ,
child: Text (
" Tap on the check-in button within the app " ,
style: TextStyle ( fontSize: 14 , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
TranslationBase . of ( context ) . EROnlineCheckInTapOnCheckIn ,
style: TextStyle ( fontSize: 14 , fontFamily: ( projectViewModel . isArabic ? ' Cairo ' : ' Poppins ' ) , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
) ,
mHeight ( 16 ) ,
@ -210,7 +210,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
Padding (
padding: const EdgeInsets . only ( left: 50 , right: 50 ) ,
child: Text (
" Hold your phone " ,
TranslationBase . of ( context ) . EROnlineCheckInHoldPhone ,
maxLines: 1 ,
style: TextStyle (
fontSize: 20 ,
@ -224,8 +224,8 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
Padding (
padding: const EdgeInsets . only ( left: 50 , right: 50 ) ,
child: Text (
" Hold the phone 1 to 2 cm from the NFC sign displayed on the board " ,
style: TextStyle ( fontSize: 14 , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
TranslationBase . of ( context ) . EROnlineCheckInHoldPhoneInstruction ,
style: TextStyle ( fontSize: 14 , fontFamily: ( projectViewModel . isArabic ? ' Cairo ' : ' Poppins ' ) , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
) ,
mHeight ( 16 ) ,
@ -241,7 +241,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
child: Center (
child: Text (
" 3 " ,
style: TextStyle ( fontSize: 22 , fontWeight: FontWeight . w700 , color: CustomColors . white , letterSpacing: - 1.44 , height: 35 / 24 ) ,
style: TextStyle ( fontSize: 22 , fontWeight: FontWeight . w700 , color: CustomColors . white , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
) ,
) ,
@ -256,7 +256,7 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
Padding (
padding: const EdgeInsets . only ( left: 50 , right: 50 ) ,
child: Text (
" Wait your turn " ,
TranslationBase . of ( context ) . EROnlineCheckInWaitTurn ,
maxLines: 1 ,
style: TextStyle (
fontSize: 20 ,
@ -270,8 +270,8 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
Padding (
padding: const EdgeInsets . only ( left: 50 , right: 50 ) ,
child: Text (
" Please wait in the waiting area until called by the nurse " ,
style: TextStyle ( fontSize: 14 , color: CustomColors . textDarkColor , letterSpacing: - 1.44 , height: 35 / 24 ) ,
TranslationBase . of ( context ) . EROnlineCheckInWaitTurnInstruction ,
style: TextStyle ( fontSize: 14 , color: CustomColors . textDarkColor , fontFamily: ( projectViewModel . isArabic ? ' Cairo ' : ' Poppins ' ) , letterSpacing: - 1.44 , height: 35 / 24 ) ,
) ,
) ,
] ,
@ -291,76 +291,76 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
child: DefaultButton (
TranslationBase . of ( context ) . arrived ,
( ) {
showMyBottomSheet ( context ,
callBackFunc: ( ) { } ,
child: Padding (
padding: const EdgeInsets . all ( 21.0 ) ,
child: Column (
children: [
Text ( TranslationBase . of ( context ) . scanQRHospital ,
style: TextStyle (
fontSize: 20 ,
fontWeight: FontWeight . w600 ,
letterSpacing: - 0.48 ,
) ) ,
mHeight ( 21 ) ,
GridView (
physics: const NeverScrollableScrollPhysics ( ) ,
shrinkWrap: true ,
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount (
crossAxisCount: ( MediaQuery . of ( context ) . size . width < 550 ) ? 3 : 5 , childAspectRatio: 1 / 1 , crossAxisSpacing: 8 , mainAxisSpacing: 12 ) ,
children: [
attendanceMethod ( TranslationBase . of ( context ) . scanNFC , " assets/images/nfc/contactless.svg " , true , ( ) {
if ( _supportsNFC ) {
Future . delayed ( const Duration ( milliseconds: 500 ) , ( ) {
showNfcReader ( context , onNcfScan: ( String nfcId ) {
Future . delayed ( const Duration ( milliseconds: 100 ) , ( ) {
print ( nfcId ) ;
getProjectIDFromNFC ( nfcId , true ) ;
/ / Navigator . push ( context , FadePage ( page: EROnlineCheckInPaymentDetails ( ) ) ) ;
} ) ;
} , onCancel: ( ) {
Navigator . of ( context ) . pop ( ) ;
} ) ;
} ) ;
} else {
/ / NFCNotSupported
AppToast . showErrorToast ( message: TranslationBase . of ( context ) . NFCNotSupported ) ;
}
} ) ,
attendanceMethod ( TranslationBase . of ( context ) . pharmaLiveCareScanQR , " assets/images/new/services/qr_code.svg " , true , ( ) async {
String onlineCheckInQRCode = ( await BarcodeScanner . scan ( ) . then ( ( value ) = > value . rawContent ) ) ;
if ( onlineCheckInQRCode ! = " " ) {
print ( onlineCheckInQRCode ) ;
getProjectIDFromNFC ( onlineCheckInQRCode , true ) ;
/ / sendNfcCheckInRequest ( onlineCheckInQRCode , 2 ) ;
} else { }
} ) ,
attendanceMethod ( TranslationBase . of ( context ) . checkInViaLocation , " assets/images/new/services/location.svg " , true , ( ) { } )
] ,
) ,
] ,
) ,
) ) ;
/ / showMyBottomSheet ( context ,
/ / callBackFunc: ( ) { } ,
/ / child: Padding (
/ / padding: const EdgeInsets . all ( 21.0 ) ,
/ / child: Column (
/ / children: [
/ / Text ( TranslationBase . of ( context ) . scanQRHospital ,
/ / style: TextStyle (
/ / fontSize: 20 ,
/ / fontWeight: FontWeight . w600 ,
/ / letterSpacing: - 0.48 ,
/ / ) ) ,
/ / mHeight ( 21 ) ,
/ / GridView (
/ / physics: const NeverScrollableScrollPhysics ( ) ,
/ / shrinkWrap: true ,
/ / gridDelegate: SliverGridDelegateWithFixedCrossAxisCount (
/ / crossAxisCount: ( MediaQuery . of ( context ) . size . width < 550 ) ? 3 : 5 , childAspectRatio: 1 / 1 , crossAxisSpacing: 8 , mainAxisSpacing: 12 ) ,
/ / children: [
/ / attendanceMethod ( TranslationBase . of ( context ) . scanNFC , " assets/images/nfc/contactless.svg " , true , ( ) {
/ / if ( _supportsNFC ) {
/ / Future . delayed ( const Duration ( milliseconds: 500 ) , ( ) {
/ / showNfcReader ( context , onNcfScan: ( String nfcId ) {
/ / Future . delayed ( const Duration ( milliseconds: 100 ) , ( ) {
/ / print ( nfcId ) ;
/ / getProjectIDFromNFC ( nfcId , true ) ;
/ / / / Navigator . push ( context , FadePage ( page: EROnlineCheckInPaymentDetails ( ) ) ) ;
/ / } ) ;
/ / } , onCancel: ( ) {
/ / Navigator . of ( context ) . pop ( ) ;
/ / } ) ;
/ / } ) ;
/ / } else {
/ / / / NFCNotSupported
/ / AppToast . showErrorToast ( message: TranslationBase . of ( context ) . NFCNotSupported ) ;
/ / }
/ / } ) ,
/ / attendanceMethod ( TranslationBase . of ( context ) . pharmaLiveCareScanQR , " assets/images/new/services/qr_code.svg " , true , ( ) async {
/ / String onlineCheckInQRCode = ( await BarcodeScanner . scan ( ) . then ( ( value ) = > value . rawContent ) ) ;
/ / if ( onlineCheckInQRCode ! = " " ) {
/ / print ( onlineCheckInQRCode ) ;
/ / getProjectIDFromNFC ( onlineCheckInQRCode , true ) ;
/ / / / sendNfcCheckInRequest ( onlineCheckInQRCode , 2 ) ;
/ / } else { }
/ / } ) ,
/ / attendanceMethod ( TranslationBase . of ( context ) . checkInViaLocation , " assets/images/new/services/location.svg " , true , ( ) { } )
/ / ] ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ;
/ / 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 , true ) ;
/ / / / Navigator . push ( context , FadePage ( page: EROnlineCheckInPaymentDetails ( ) ) ) ;
/ / } ) ;
/ / } , onCancel: ( ) {
/ / Navigator . of ( context ) . pop ( ) ;
/ / } ) ;
/ / } ) ;
/ / } else {
/ / / / NFCNotSupported
/ / AppToast . showErrorToast ( message: TranslationBase . of ( context ) . NFCNotSupported ) ;
/ / }
if ( _supportsNFC ) {
Future . delayed ( const Duration ( milliseconds: 500 ) , ( ) {
showNfcReader ( context , onNcfScan: ( String nfcId ) {
Future . delayed ( const Duration ( milliseconds: 100 ) , ( ) {
print ( nfcId ) ;
getProjectIDFromNFC ( nfcId , true ) ;
/ / Navigator . push ( context , FadePage ( page: EROnlineCheckInPaymentDetails ( ) ) ) ;
} ) ;
} , onCancel: ( ) {
Navigator . of ( context ) . pop ( ) ;
} ) ;
} ) ;
} else {
/ / NFCNotSupported
AppToast . showErrorToast ( message: TranslationBase . of ( context ) . NFCNotSupported ) ;
}
} ,
color: CustomColors . accentColor ,
) ,