|
|
|
|
@ -16,8 +16,9 @@ import 'package:share_plus/share_plus.dart';
|
|
|
|
|
|
|
|
|
|
class InPatientPendingAdvancePayment extends StatefulWidget {
|
|
|
|
|
InPatientAdvanceResponseModel inPatientAdvanceResponseModel;
|
|
|
|
|
bool isHasData;
|
|
|
|
|
|
|
|
|
|
InPatientPendingAdvancePayment({@required this.inPatientAdvanceResponseModel});
|
|
|
|
|
InPatientPendingAdvancePayment({this.isHasData, this.inPatientAdvanceResponseModel});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
State<InPatientPendingAdvancePayment> createState() => _InPatientPendingAdvancePaymentState();
|
|
|
|
|
@ -57,93 +58,95 @@ class _InPatientPendingAdvancePaymentState extends State<InPatientPendingAdvance
|
|
|
|
|
margin: EdgeInsets.zero,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(12.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
"Payment request for: ",
|
|
|
|
|
// TranslationBase.of(context).covidBookAppo,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mHeight(6),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).patientName + ":",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
letterSpacing: -0.6,
|
|
|
|
|
color: CustomColors.grey,
|
|
|
|
|
child: widget.isHasData
|
|
|
|
|
? Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
"Payment request for: ",
|
|
|
|
|
// TranslationBase.of(context).covidBookAppo,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mWidth(3),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.user.firstName + " " + projectViewModel.user.lastName,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
mHeight(6),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).patientName + ":",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
letterSpacing: -0.6,
|
|
|
|
|
color: CustomColors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mWidth(3),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.user.firstName + " " + projectViewModel.user.lastName,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).identificationNumber + ":",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
letterSpacing: -0.6,
|
|
|
|
|
color: CustomColors.grey,
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).identificationNumber + ":",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
letterSpacing: -0.6,
|
|
|
|
|
color: CustomColors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mWidth(3),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.user.patientIdentificationNo,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mWidth(3),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.user.patientIdentificationNo,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).mrn + ":",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
letterSpacing: -0.6,
|
|
|
|
|
color: CustomColors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mWidth(3),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.user.patientID.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).mrn + ":",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
letterSpacing: -0.6,
|
|
|
|
|
color: CustomColors.grey,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mWidth(3),
|
|
|
|
|
Text(
|
|
|
|
|
projectViewModel.user.patientID.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: getNoDataWidget(context),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
mHeight(12),
|
|
|
|
|
// Expanded(child: Container()),
|
|
|
|
|
Container(
|
|
|
|
|
widget.isHasData ? Container(
|
|
|
|
|
decoration: cardRadius(12.0),
|
|
|
|
|
margin: EdgeInsets.zero,
|
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
|
@ -218,7 +221,7 @@ class _InPatientPendingAdvancePaymentState extends State<InPatientPendingAdvance
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
) : Container(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|