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(
margin: EdgeInsets.only(top: 6.5, left: 2.0),
child: Text(
model.insuranceUpdate[index].statusDescription!,
model.insuranceUpdate[index].statusDescription ?? "",
style: TextStyle(
fontSize: 10,
fontWeight: FontWeight.w600,

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

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

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

Loading…
Cancel
Save