|
|
|
|
@ -15,6 +15,7 @@ import '../../../util/dr_app_shared_pref.dart';
|
|
|
|
|
import '../../../widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
import '../../../widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import '../../../widgets/shared/dr_app_circular_progress_Indeicator.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
|
|
DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
|
|
|
|
|
@ -77,7 +78,7 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppScaffold(
|
|
|
|
|
appBarTitle: "Insurance Approvals",
|
|
|
|
|
appBarTitle: TranslationBase.of(context).insuranceApprovals,
|
|
|
|
|
body: patientsProv.isLoading
|
|
|
|
|
? DrAppCircularProgressIndeicator()
|
|
|
|
|
: patientsProv.isError
|
|
|
|
|
@ -128,9 +129,12 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
? DoctorApp.reject_icon
|
|
|
|
|
: DoctorApp.pending_icon,
|
|
|
|
|
.contains(
|
|
|
|
|
"Cancelled")
|
|
|
|
|
? DoctorApp
|
|
|
|
|
.reject_icon
|
|
|
|
|
: DoctorApp
|
|
|
|
|
.pending_icon,
|
|
|
|
|
color: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
@ -139,12 +143,17 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
.contains(
|
|
|
|
|
"Cancelled")
|
|
|
|
|
? Colors.red
|
|
|
|
|
: Colors.yellow,
|
|
|
|
|
),
|
|
|
|
|
AppText(approvalsList[index]["ApprovalStatusDescption"],
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
AppText(
|
|
|
|
|
approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"],
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.textMultiplier *
|
|
|
|
|
1.5,
|
|
|
|
|
color: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
@ -153,9 +162,11 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
.contains(
|
|
|
|
|
"Cancelled")
|
|
|
|
|
? Colors.red
|
|
|
|
|
: Colors.yellow,)
|
|
|
|
|
: Colors.yellow,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
@ -204,7 +215,8 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
backgroundColor:
|
|
|
|
|
Color(PRIMARY_COLOR),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
approvalsList[index]
|
|
|
|
|
@ -212,14 +224,12 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
.toString(),
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 19,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
marginTop: 10,
|
|
|
|
|
marginLeft: 10,
|
|
|
|
|
marginRight: 10,
|
|
|
|
|
marginBottom: 2,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
"Approval No:",
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
@ -241,24 +251,34 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
AppText(
|
|
|
|
|
"PRODUCER NAME",
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
marginLeft: SizeConfig
|
|
|
|
|
.widthMultiplier *
|
|
|
|
|
3,
|
|
|
|
|
),
|
|
|
|
|
AppText(checkList(approvalsList[index]["ApporvalDetails"])?
|
|
|
|
|
approvalsList[index]
|
|
|
|
|
AppText(
|
|
|
|
|
checkList(approvalsList[
|
|
|
|
|
index]
|
|
|
|
|
[
|
|
|
|
|
"ApporvalDetails"])
|
|
|
|
|
? approvalsList[
|
|
|
|
|
index]
|
|
|
|
|
[
|
|
|
|
|
"ApporvalDetails"][0]
|
|
|
|
|
[
|
|
|
|
|
"ProcedureName"] : "",
|
|
|
|
|
"ProcedureName"]
|
|
|
|
|
: "",
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.bold,
|
|
|
|
|
marginLeft: SizeConfig
|
|
|
|
|
.widthMultiplier *
|
|
|
|
|
3,
|
|
|
|
|
marginTop: 3,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -273,22 +293,26 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
AppText(
|
|
|
|
|
"STATUS",
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
marginLeft: SizeConfig
|
|
|
|
|
.widthMultiplier *
|
|
|
|
|
9,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
approvalsList[index]
|
|
|
|
|
[
|
|
|
|
|
approvalsList[
|
|
|
|
|
index][
|
|
|
|
|
"ApprovalStatusDescption"],
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.bold,
|
|
|
|
|
marginLeft: SizeConfig
|
|
|
|
|
.widthMultiplier *
|
|
|
|
|
9,
|
|
|
|
|
marginTop: 3,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -307,7 +331,8 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
AppText(
|
|
|
|
|
"RECEIPT ON",
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
marginLeft: SizeConfig
|
|
|
|
|
.widthMultiplier *
|
|
|
|
|
3,
|
|
|
|
|
@ -316,16 +341,25 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
1.5,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
convertDateFormat( approvalsList[index]
|
|
|
|
|
["ReceiptOn"]),
|
|
|
|
|
convertDateFormat(
|
|
|
|
|
approvalsList[
|
|
|
|
|
index]
|
|
|
|
|
[
|
|
|
|
|
"ReceiptOn"]),
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.bold,
|
|
|
|
|
marginLeft: SizeConfig
|
|
|
|
|
.widthMultiplier *
|
|
|
|
|
3,
|
|
|
|
|
marginTop: 3,
|
|
|
|
|
marginBottom: SizeConfig.heightMultiplier*2,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
marginBottom:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.heightMultiplier *
|
|
|
|
|
2,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -340,7 +374,8 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
AppText(
|
|
|
|
|
"EXPIRY DATE",
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
marginTop: SizeConfig
|
|
|
|
|
.heightMultiplier *
|
|
|
|
|
1.5,
|
|
|
|
|
@ -351,16 +386,23 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
AppText(
|
|
|
|
|
convertDateFormat(
|
|
|
|
|
approvalsList[
|
|
|
|
|
index][
|
|
|
|
|
index]
|
|
|
|
|
[
|
|
|
|
|
"ExpiryDate"]),
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.bold,
|
|
|
|
|
marginLeft: SizeConfig
|
|
|
|
|
.widthMultiplier *
|
|
|
|
|
9,
|
|
|
|
|
marginTop: 3,
|
|
|
|
|
marginBottom: SizeConfig.heightMultiplier*2,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
marginBottom:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.heightMultiplier *
|
|
|
|
|
2,
|
|
|
|
|
color:
|
|
|
|
|
Colors.white,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -434,7 +476,8 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
|
|
|
|
|
return newDate.toString();
|
|
|
|
|
}
|
|
|
|
|
bool checkList(List list){
|
|
|
|
|
|
|
|
|
|
bool checkList(List list) {
|
|
|
|
|
return list.length > 0 ? true : false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|