|
|
|
|
@ -146,82 +146,84 @@ class _InPatientPendingAdvancePaymentState extends State<InPatientPendingAdvance
|
|
|
|
|
),
|
|
|
|
|
mHeight(12),
|
|
|
|
|
// Expanded(child: Container()),
|
|
|
|
|
widget.isHasData ? Container(
|
|
|
|
|
decoration: cardRadius(12.0),
|
|
|
|
|
margin: EdgeInsets.zero,
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).patientShareTotalToDo,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
widget.isHasData
|
|
|
|
|
? Container(
|
|
|
|
|
decoration: cardRadius(12.0),
|
|
|
|
|
margin: EdgeInsets.zero,
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).patientShareTotalToDo,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).sar + " ${widget.inPatientAdvanceResponseModel.responseInpatientAdvanceInfo[0].requestedAmount}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).sar + " ${widget.inPatientAdvanceResponseModel.responseInpatientAdvanceInfo[0].requestedAmount}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).YouCanPayByTheFollowingOptions,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).YouCanPayByTheFollowingOptions,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.75,
|
|
|
|
|
child: getPaymentMethods(),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
DefaultButton(
|
|
|
|
|
TranslationBase.of(context).payNow.toUpperCase(),
|
|
|
|
|
() {
|
|
|
|
|
getInPatientPaymentLink(false);
|
|
|
|
|
},
|
|
|
|
|
// : null,
|
|
|
|
|
color: CustomColors.green,
|
|
|
|
|
disabledColor: CustomColors.grey2,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).copyLinkTxt,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.75,
|
|
|
|
|
child: getPaymentMethods(),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
DefaultButton(
|
|
|
|
|
TranslationBase.of(context).payNow.toUpperCase(),
|
|
|
|
|
() {
|
|
|
|
|
getInPatientPaymentLink(false);
|
|
|
|
|
},
|
|
|
|
|
// : null,
|
|
|
|
|
color: CustomColors.green,
|
|
|
|
|
disabledColor: CustomColors.grey2,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).copyLinkTxt,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2B353E),
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
DefaultButton(
|
|
|
|
|
TranslationBase.of(context).copyLink.toUpperCase(),
|
|
|
|
|
() {
|
|
|
|
|
getInPatientPaymentLink(true);
|
|
|
|
|
},
|
|
|
|
|
svgIcon: "assets/images/new/copy.svg",
|
|
|
|
|
color: CustomColors.accentColor,
|
|
|
|
|
disabledColor: CustomColors.grey2,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 12),
|
|
|
|
|
DefaultButton(
|
|
|
|
|
TranslationBase.of(context).copyLink.toUpperCase(),
|
|
|
|
|
() {
|
|
|
|
|
getInPatientPaymentLink(true);
|
|
|
|
|
},
|
|
|
|
|
svgIcon: "assets/images/new/copy.svg",
|
|
|
|
|
color: CustomColors.accentColor,
|
|
|
|
|
disabledColor: CustomColors.grey2,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
) : Container(),
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
@ -260,6 +262,7 @@ class _InPatientPendingAdvancePaymentState extends State<InPatientPendingAdvance
|
|
|
|
|
widget.inPatientAdvanceResponseModel.responseInpatientAdvanceInfo[0].requestedAmount,
|
|
|
|
|
projectViewModel.user.patientIdentificationNo,
|
|
|
|
|
clinicID,
|
|
|
|
|
widget.inPatientAdvanceResponseModel.responseInpatientAdvanceInfo[0].paymentRequestID,
|
|
|
|
|
context)
|
|
|
|
|
.then((res) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
|