|
|
|
|
@ -57,207 +57,207 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
late String tamaraOrderID;
|
|
|
|
|
late MyInAppBrowser browser;
|
|
|
|
|
|
|
|
|
|
num paymentAmount = 295.0;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
|
return Directionality(
|
|
|
|
|
// lock the whole page to LTR
|
|
|
|
|
textDirection: TextDirection.ltr,
|
|
|
|
|
child: AppScaffold(
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
showNewAppBar: true,
|
|
|
|
|
isHelp: true,
|
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
|
appBarTitle: widget.title,
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
/// Banner
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
"assets/images/svg/details_page_banner.svg",
|
|
|
|
|
height: 120,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
/// Arabic Offer Section
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 24.0, vertical: 32.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(top: 32),
|
|
|
|
|
child: Directionality(
|
|
|
|
|
textDirection: TextDirection.rtl,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.hisProjectOffers.first.titleArabic!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Cairo',
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Color(0xff008b4c),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.hisProjectOffers.first.descriptionArabic!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Cairo',
|
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.hisProjectOffers.first.detailsArabic!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Cairo',
|
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
isShowAppBar: false,
|
|
|
|
|
showNewAppBar: true,
|
|
|
|
|
isHelp: true,
|
|
|
|
|
showNewAppBarTitle: true,
|
|
|
|
|
appBarTitle: widget.title,
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
/// Banner
|
|
|
|
|
SvgPicture.asset(
|
|
|
|
|
"assets/images/svg/details_page_banner.svg",
|
|
|
|
|
height: 120,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
const Divider(thickness: 1, color: Color(0xff008b4c)),
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
|
|
|
|
|
/// English Offer Section
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.hisProjectOffers.first.titleName!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Color(0xff008b4c),
|
|
|
|
|
),
|
|
|
|
|
/// Arabic Offer Section
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 24.0, vertical: 32.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: const EdgeInsets.only(top: 32),
|
|
|
|
|
// child: Directionality(
|
|
|
|
|
// textDirection: TextDirection.rtl,
|
|
|
|
|
// child: Column(
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
// children: [
|
|
|
|
|
// Text(
|
|
|
|
|
// projectViewModel.hisProjectOffers.first.titleArabic!,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontFamily: 'Cairo',
|
|
|
|
|
// fontSize: 22,
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// color: Color(0xff008b4c),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// Text(
|
|
|
|
|
// projectViewModel.hisProjectOffers.first.descriptionArabic!,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontFamily: 'Cairo',
|
|
|
|
|
// fontWeight: FontWeight.w300,
|
|
|
|
|
// fontSize: 16,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(height: 12),
|
|
|
|
|
// Text(
|
|
|
|
|
// projectViewModel.hisProjectOffers.first.detailsArabic!,
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
// fontFamily: 'Cairo',
|
|
|
|
|
// fontWeight: FontWeight.w300,
|
|
|
|
|
// fontSize: 14,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
// const SizedBox(height: 20),
|
|
|
|
|
// const Divider(thickness: 1, color: Color(0xff008b4c)),
|
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
|
|
|
|
|
|
/// English Offer Section
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
|
? projectViewModel.hisProjectOffers.first.titleArabic!.split("\$")[0].trim()
|
|
|
|
|
: projectViewModel.hisProjectOffers.first.titleName!.split("\$")[0].trim(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 22,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Color(0xff008b4c),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.hisProjectOffers.first.descriptionEnglish!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.isArabic ? projectViewModel.hisProjectOffers.first.descriptionArabic! : projectViewModel.hisProjectOffers.first.descriptionEnglish!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
// fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.hisProjectOffers.first.detailsEnglish!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.isArabic ? projectViewModel.hisProjectOffers.first.detailsArabic! : projectViewModel.hisProjectOffers.first.detailsEnglish!,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
// fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
|
|
|
|
|
/// Hospital Dropdown (mock UI)
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.grey.shade300,
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
openHospitalSelection(context);
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection: TextDirection.rtl,
|
|
|
|
|
child: Text(
|
|
|
|
|
selectedHospital?.nameN ?? TranslationBase.of(context).selectHospital,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Cairo',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
selectedHospital?.name ?? TranslationBase.of(context).selectHospital,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
|
|
|
|
|
/// Hospital Dropdown (mock UI)
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.grey.shade300,
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
openHospitalSelection(context);
|
|
|
|
|
},
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Directionality(
|
|
|
|
|
textDirection: TextDirection.rtl,
|
|
|
|
|
child: Text(
|
|
|
|
|
selectedHospital?.nameN ?? TranslationBase.of(context).selectHospital,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontFamily: 'Cairo',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
selectedHospital?.name ?? TranslationBase.of(context).selectHospital,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Icon(Icons.arrow_drop_down),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Icon(Icons.arrow_drop_down),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
|
|
|
|
|
/// Buttons
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
/// Buttons
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 30),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 30),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 12.0, right: 12.0, bottom: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width - 24,
|
|
|
|
|
height: 50,
|
|
|
|
|
child: DefaultButton("Pay Now ادفع الآن", () {
|
|
|
|
|
if (projectViewModel.isLogin) {
|
|
|
|
|
if (selectedHospital != null) {
|
|
|
|
|
startPaymentProcess(context);
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).selectHospital);
|
|
|
|
|
}
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 12.0, right: 12.0, bottom: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width - 24,
|
|
|
|
|
height: 50,
|
|
|
|
|
child: DefaultButton("Pay Now ادفع الآن", () {
|
|
|
|
|
if (projectViewModel.isLogin) {
|
|
|
|
|
if (selectedHospital != null) {
|
|
|
|
|
startPaymentProcess(context);
|
|
|
|
|
} else {
|
|
|
|
|
ConfirmDialog dialog = new ConfirmDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
confirmMessage: TranslationBase.of(context).loginToUseService,
|
|
|
|
|
okText: TranslationBase.of(context).confirm,
|
|
|
|
|
cancelText: TranslationBase.of(context).cancel_nocaps,
|
|
|
|
|
okFunction: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
widget.onLoginClick!();
|
|
|
|
|
},
|
|
|
|
|
cancelFunction: () => {});
|
|
|
|
|
dialog.showAlertDialog(context);
|
|
|
|
|
AppToast.showErrorToast(message: TranslationBase.of(context).selectHospital);
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
} else {
|
|
|
|
|
ConfirmDialog dialog = new ConfirmDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
confirmMessage: TranslationBase.of(context).loginToUseService,
|
|
|
|
|
okText: TranslationBase.of(context).confirm,
|
|
|
|
|
cancelText: TranslationBase.of(context).cancel_nocaps,
|
|
|
|
|
okFunction: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
widget.onLoginClick!();
|
|
|
|
|
},
|
|
|
|
|
cancelFunction: () => {});
|
|
|
|
|
dialog.showAlertDialog(context);
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
@ -270,19 +270,19 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
onSelectedMethod: (String metohd, [String? selectedInstallmentPlan]) {
|
|
|
|
|
selectedPaymentMethod = metohd;
|
|
|
|
|
},
|
|
|
|
|
patientShare: projectViewModel.hisProjectOffers.first.amountWithTax,
|
|
|
|
|
patientShare: paymentAmount,
|
|
|
|
|
isShowInstallments: false,
|
|
|
|
|
isFromAdvancePayment: false),
|
|
|
|
|
isFromAdvancePayment: true),
|
|
|
|
|
),
|
|
|
|
|
).then((value) {
|
|
|
|
|
if (selectedPaymentMethod == "ApplePay") {
|
|
|
|
|
if (projectViewModel.havePrivilege(103)) {
|
|
|
|
|
startApplePay(context);
|
|
|
|
|
} else {
|
|
|
|
|
openPayment(selectedPaymentMethod, projectViewModel.authenticatedUserObject.user, projectViewModel.hisProjectOffers.first.amountWithTax!, AppoitmentAllHistoryResultList());
|
|
|
|
|
openPayment(selectedPaymentMethod, projectViewModel.authenticatedUserObject.user, paymentAmount, AppoitmentAllHistoryResultList());
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
openPayment(selectedPaymentMethod, projectViewModel.authenticatedUserObject.user, projectViewModel.hisProjectOffers.first.amountWithTax!, AppoitmentAllHistoryResultList());
|
|
|
|
|
openPayment(selectedPaymentMethod, projectViewModel.authenticatedUserObject.user, paymentAmount, AppoitmentAllHistoryResultList());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -322,7 +322,7 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
applePayInsertRequest.liveServiceID = "0";
|
|
|
|
|
applePayInsertRequest.latitude = "0.0";
|
|
|
|
|
applePayInsertRequest.longitude = "0.0";
|
|
|
|
|
applePayInsertRequest.amount = projectViewModel.hisProjectOffers.first.amountWithTax.toString();
|
|
|
|
|
applePayInsertRequest.amount = paymentAmount.toString();
|
|
|
|
|
applePayInsertRequest.isSchedule = "0";
|
|
|
|
|
applePayInsertRequest.language = projectViewModel.isArabic ? 'ar' : 'en';
|
|
|
|
|
applePayInsertRequest.languageID = projectViewModel.isArabic ? 1 : 2;
|
|
|
|
|
@ -349,7 +349,7 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
// customerEmail: projectViewModel.authenticatedUserObject.user.emailAddress,
|
|
|
|
|
customerEmail: "CustID_${projectViewModel.authenticatedUserObject.user.patientID}@HMG.com",
|
|
|
|
|
orderDescription: "Advance Payment",
|
|
|
|
|
orderAmount: projectViewModel.hisProjectOffers.first.amountWithTax,
|
|
|
|
|
orderAmount: paymentAmount,
|
|
|
|
|
merchantReference: transID,
|
|
|
|
|
payfortProjectDetailsRespModel: payfortProjectDetailsRespModel,
|
|
|
|
|
currency: projectViewModel.authenticatedUserObject.user.outSA == 1 ? "AED" : "SAR",
|
|
|
|
|
@ -442,14 +442,7 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
onBrowserExit(AppoitmentAllHistoryResultList appo, bool isPaymentMade) {
|
|
|
|
|
print("onBrowserExit Called");
|
|
|
|
|
if (selectedPaymentMethod == "TAMARA" && tamaraPaymentStatus != null && tamaraPaymentStatus == "approved") {
|
|
|
|
|
var res = {
|
|
|
|
|
"Amount": projectViewModel.hisProjectOffers.first.amountWithTax!,
|
|
|
|
|
"ErrorMessage": null,
|
|
|
|
|
"Fort_id": tamaraOrderID,
|
|
|
|
|
"Merchant_Reference": "5058637919318707883366",
|
|
|
|
|
"PaymentMethod": "TAMARA",
|
|
|
|
|
"Response_Message": "Success"
|
|
|
|
|
};
|
|
|
|
|
var res = {"Amount": paymentAmount, "ErrorMessage": null, "Fort_id": tamaraOrderID, "Merchant_Reference": "5058637919318707883366", "PaymentMethod": "TAMARA", "Response_Message": "Success"};
|
|
|
|
|
purchaseOfferAPICall(res);
|
|
|
|
|
} else {
|
|
|
|
|
checkPaymentStatus(appo);
|
|
|
|
|
@ -473,7 +466,7 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
} else {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(AppGlobal.context);
|
|
|
|
|
AppToast.showErrorToast(message: res['Response_Message']);
|
|
|
|
|
amount = projectViewModel.hisProjectOffers.first.amountWithTax!.toString();
|
|
|
|
|
amount = paymentAmount.toString();
|
|
|
|
|
payment_method = selectedPaymentMethod;
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
@ -518,11 +511,7 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
List<HospitalsModel> projectsListLocal = [];
|
|
|
|
|
|
|
|
|
|
projectViewModel.hisProjectOffers.forEach((project) {
|
|
|
|
|
projectsListLocal.add(new HospitalsModel(
|
|
|
|
|
iD: project.projectId,
|
|
|
|
|
name: project.projectEnglish,
|
|
|
|
|
nameN: project.projectArabic,
|
|
|
|
|
));
|
|
|
|
|
projectsListLocal.add(new HospitalsModel(iD: project.projectId, name: project.projectEnglish, nameN: project.projectArabic, amountWithTax: project.amountWithTax));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
showDialog(
|
|
|
|
|
@ -536,6 +525,8 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
|
_selectedHospitalIndex = index;
|
|
|
|
|
setState(() {
|
|
|
|
|
selectedHospital = projectsListLocal[index];
|
|
|
|
|
paymentAmount = projectsListLocal[index].amountWithTax ?? 295.0;
|
|
|
|
|
print(paymentAmount);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|