CloudFlare & NPHIES in livecare reinstated

merge-update-with-lab-changes
haroon amjad 1 year ago
parent 92ccbaa2b5
commit faeba6a14c

@ -167,7 +167,7 @@ class _InsuranceUpdateState extends State<InsuranceUpdate> with SingleTickerProv
Container( Container(
margin: EdgeInsets.only(top: 6.5, left: 2.0), margin: EdgeInsets.only(top: 6.5, left: 2.0),
child: Text( child: Text(
model.insuranceUpdate[index].statusDescription!, model.insuranceUpdate[index].statusDescription ?? "",
style: TextStyle( style: TextStyle(
fontSize: 10, fontSize: 10,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,

@ -336,36 +336,36 @@ class _LiveCarePatmentPageState extends State<LiveCarePatmentPage> {
), ),
], ],
), ),
// widget.getERAppointmentFeesList.isCash! widget.getERAppointmentFeesList.isCash!
// ? Column( ? Column(
// children: [ children: [
// mHeight(10.0), mHeight(10.0),
// Text( Text(
// TranslationBase.of(context).cashAmountUpdateInsurance, TranslationBase.of(context).cashAmountUpdateInsurance,
// style: TextStyle( style: TextStyle(
// fontSize: 14.0, fontSize: 14.0,
// fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
// color: Color(0xff2E303A), color: Color(0xff2E303A),
// ), ),
// ), ),
// mHeight(5.0), mHeight(5.0),
// DefaultButton( DefaultButton(
// TranslationBase.of(context).updateInsuranceText, TranslationBase.of(context).updateInsuranceText,
// () { () {
// Navigator.pop(context, null); Navigator.pop(context, null);
// Navigator.pushAndRemoveUntil( Navigator.pushAndRemoveUntil(
// context, context,
// MaterialPageRoute(builder: (context) => LandingPage()), MaterialPageRoute(builder: (context) => LandingPage()),
// (Route<dynamic> route) => false, (Route<dynamic> route) => false,
// ); );
// Navigator.push(context, FadePage(page: InsuranceUpdate())); Navigator.push(context, FadePage(page: InsuranceUpdate()));
// }, },
// color: Color(0xffEAA118), color: Color(0xffEAA118),
// textColor: Colors.white, textColor: Colors.white,
// ), ),
// ], ],
// ) )
// : Container(), : Container(),
], ],
), ),
), ),

@ -207,29 +207,29 @@ class _clinic_listState extends State<ClinicList> {
// getERAppointmentFeesList.isInsured = true; // getERAppointmentFeesList.isInsured = true;
// getERAppointmentFeesList.isEligible = false; // getERAppointmentFeesList.isEligible = false;
// if (getERAppointmentFeesList.isCash!) { if (getERAppointmentFeesList.isCash!) {
// showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']); showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
// } else { } else {
// if (getERAppointmentFeesList.isInsured! && getERAppointmentFeesList.isEligible!) { if (getERAppointmentFeesList.isInsured! && getERAppointmentFeesList.isEligible!) {
// showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']); showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
// } else { } else {
// if (getERAppointmentFeesList.isInsured! && !getERAppointmentFeesList.isEligible!) { if (getERAppointmentFeesList.isInsured! && !getERAppointmentFeesList.isEligible!) {
// errorMsg = TranslationBase.of(context).invalidEligibility; errorMsg = TranslationBase.of(context).invalidEligibility;
// } else { } else {
// errorMsg = TranslationBase.of(context).invalidInsurance; errorMsg = TranslationBase.of(context).invalidInsurance;
// } }
// ConfirmDialog dialog = new ConfirmDialog( ConfirmDialog dialog = new ConfirmDialog(
// isDissmissable: false, isDissmissable: false,
// context: context, context: context,
// confirmMessage: errorMsg, confirmMessage: errorMsg,
// okText: TranslationBase.of(context).updateInsuranceText, okText: TranslationBase.of(context).updateInsuranceText,
// cancelText: TranslationBase.of(context).continueCash, cancelText: TranslationBase.of(context).continueCash,
// okFunction: () => {openUpdateInsurance()}, okFunction: () => {openUpdateInsurance()},
// cancelFunction: () => {continueAsCash()}); cancelFunction: () => {continueAsCash()});
// dialog.showAlertDialog(context); dialog.showAlertDialog(context);
// } }
// } }
showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']); // showLiveCarePaymentDialog(getERAppointmentFeesList, res['WatingtimeInteger']);
}).catchError((err) { }).catchError((err) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
print(err); print(err);

@ -85,25 +85,25 @@ class _ForgotPassword extends State<ForgotPassword> {
countryCode = value; countryCode = value;
}); });
}), }),
// const SizedBox(height: 12.0), const SizedBox(height: 12.0),
// CloudFlareTurnstile( CloudFlareTurnstile(
// siteKey: '0x4AAAAAAAkmbvEy63pcxBBt', siteKey: '0x4AAAAAAAkmbvEy63pcxBBt',
// baseUrl: BASE_URL, baseUrl: BASE_URL,
// options: _options, options: _options,
// controller: _controller, controller: _controller,
// onTokenRecived: (token) { onTokenRecived: (token) {
// setState(() { setState(() {
// print("Cloudflare token: $token"); print("Cloudflare token: $token");
// _token = token; _token = token;
// }); });
// }, },
// onTokenExpired: () {}, onTokenExpired: () {},
// mode: TurnstileMode.managed, mode: TurnstileMode.managed,
// errorBuilder: (context, error) { errorBuilder: (context, error) {
// return Text(error.message); return Text(error.message);
// }, },
// ), ),
// const SizedBox(height: 48.0), const SizedBox(height: 48.0),
], ],
), ),
), ),

Loading…
Cancel
Save