|
|
|
@ -54,87 +54,94 @@ class _InsuranceApprovalScreenNewState
|
|
|
|
|
appBarTitle: TranslationBase.of(context).approvals,
|
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: SizeConfig.screenWidth * 0.004,
|
|
|
|
|
right: SizeConfig.screenWidth * 0.004,
|
|
|
|
|
top: SizeConfig.screenWidth * 0.04,
|
|
|
|
|
),
|
|
|
|
|
child: model.insuranceApproval.length != 0
|
|
|
|
|
? Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Insurance',
|
|
|
|
|
fontSize: 15.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Approvals',
|
|
|
|
|
fontSize: 30.0,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: SizeConfig.screenWidth * 0.004,
|
|
|
|
|
right: SizeConfig.screenWidth * 0.004,
|
|
|
|
|
top: SizeConfig.screenWidth * 0.04,
|
|
|
|
|
),
|
|
|
|
|
child: model.insuranceApproval.length != 0
|
|
|
|
|
? Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Insurance',
|
|
|
|
|
fontSize: 15.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
'Approvals',
|
|
|
|
|
fontSize: 30.0,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.insuranceApproval.length,
|
|
|
|
|
(index) => Container(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
InsuranceApprovalsDetails(
|
|
|
|
|
patient: patient,
|
|
|
|
|
indexInsurance: index,
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: DoctorCardInsurance(
|
|
|
|
|
patientOut: model
|
|
|
|
|
.insuranceApproval[index].patientDescription,
|
|
|
|
|
profileUrl:
|
|
|
|
|
model.insuranceApproval[index].doctorImage,
|
|
|
|
|
clinic: model.insuranceApproval[index].clinicName,
|
|
|
|
|
doctorName:
|
|
|
|
|
model.insuranceApproval[index].doctorName,
|
|
|
|
|
branch: model.insuranceApproval[index].approvalNo
|
|
|
|
|
.toString(),
|
|
|
|
|
isPrescriptions: true,
|
|
|
|
|
approvalStatus: model.insuranceApproval[index]
|
|
|
|
|
.approvalStatusDescption ??
|
|
|
|
|
'',
|
|
|
|
|
branch2:
|
|
|
|
|
model.insuranceApproval[index].projectName,
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.insuranceApproval.length,
|
|
|
|
|
(index) => Container(
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
InsuranceApprovalsDetails(
|
|
|
|
|
patient: patient,
|
|
|
|
|
indexInsurance: index,
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: DoctorCardInsurance(
|
|
|
|
|
patientOut: model.insuranceApproval[index]
|
|
|
|
|
.patientDescription,
|
|
|
|
|
profileUrl:
|
|
|
|
|
model.insuranceApproval[index].doctorImage,
|
|
|
|
|
clinic:
|
|
|
|
|
model.insuranceApproval[index].clinicName,
|
|
|
|
|
doctorName:
|
|
|
|
|
model.insuranceApproval[index].doctorName,
|
|
|
|
|
branch: model
|
|
|
|
|
.insuranceApproval[index].approvalNo
|
|
|
|
|
.toString(),
|
|
|
|
|
isPrescriptions: true,
|
|
|
|
|
approvalStatus: model.insuranceApproval[index]
|
|
|
|
|
.approvalStatusDescption ??
|
|
|
|
|
'',
|
|
|
|
|
branch2:
|
|
|
|
|
model.insuranceApproval[index].projectName,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 100,
|
|
|
|
|
),
|
|
|
|
|
Image.asset('assets/images/no-data.png'),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Texts('No Insurance Approval Found'),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 200,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Text("No Insurance Approvals Found")))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|