|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import 'package:doctor_app_flutter/config/config.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/insurance_aprovals_request.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/presentation/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/errors/dr_app_embedded_error.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -116,29 +117,46 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
ExpansionTile(
|
|
|
|
|
title: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Icon(
|
|
|
|
|
approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Approved")
|
|
|
|
|
? Icons.check_circle_outline
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
Column(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Icon(
|
|
|
|
|
approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
? Icons.highlight_off
|
|
|
|
|
: Icons.history,
|
|
|
|
|
color: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Approved")
|
|
|
|
|
? Colors.green
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
.contains("Approved")
|
|
|
|
|
? DoctorApp.approved_icon
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
? DoctorApp.reject_icon
|
|
|
|
|
: DoctorApp.pending_icon,
|
|
|
|
|
color: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
? Colors.red
|
|
|
|
|
: Colors.yellow,
|
|
|
|
|
.contains("Approved")
|
|
|
|
|
? Colors.green
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
? Colors.red
|
|
|
|
|
: Colors.yellow,
|
|
|
|
|
),
|
|
|
|
|
AppText(approvalsList[index]["ApprovalStatusDescption"],
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
color: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Approved")
|
|
|
|
|
? Colors.green
|
|
|
|
|
: approvalsList[index][
|
|
|
|
|
"ApprovalStatusDescption"]
|
|
|
|
|
.toString()
|
|
|
|
|
.contains("Cancelled")
|
|
|
|
|
? Colors.red
|
|
|
|
|
: Colors.yellow,)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -186,15 +204,8 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
backgroundColor:
|
|
|
|
|
Color(PRIMARY_COLOR),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
"Approval No:",
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
margin: 10,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
approvalsList[index]
|
|
|
|
|
["ApprovalNo"]
|
|
|
|
|
@ -203,10 +214,21 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
|
|
|
|
|
fontSize: 19,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.bold,
|
|
|
|
|
margin: 5,
|
|
|
|
|
marginTop: 10,
|
|
|
|
|
marginLeft: 10,
|
|
|
|
|
marginRight: 10,
|
|
|
|
|
marginBottom: 2,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
"Approval No:",
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
marginTop: 2,
|
|
|
|
|
marginLeft: 10,
|
|
|
|
|
marginBottom: 15,
|
|
|
|
|
marginRight: 10,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
|