|
|
|
|
@ -38,7 +38,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
final routeArgs = ModalRoute.of(context)!.settings.arguments as Map;
|
|
|
|
|
// final routeArgs = ModalRoute.of(context)!.settings.arguments as Map;
|
|
|
|
|
|
|
|
|
|
return BaseView<InsuranceViewModel>(
|
|
|
|
|
onModelReady: (model) => model.insuranceApprovalInPatient.length == 0
|
|
|
|
|
@ -48,8 +48,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
? (model) => model.getInsuranceApproval(patient, appointmentNo: patient!.appointmentNo, projectId: patient!.projectId)
|
|
|
|
|
: (model) => model.getInsuranceApproval(patient)
|
|
|
|
|
: null,
|
|
|
|
|
builder: (BuildContext context, InsuranceViewModel model, Widget? child) =>
|
|
|
|
|
AppScaffold(
|
|
|
|
|
builder: (BuildContext context, InsuranceViewModel model, Widget? child) => AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
appBar: PatientProfileAppBar(patient!),
|
|
|
|
|
@ -81,45 +80,25 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalStatusDescption !=
|
|
|
|
|
null
|
|
|
|
|
? model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalStatusDescption ??
|
|
|
|
|
""
|
|
|
|
|
model.insuranceApprovalInPatient[indexInsurance].approvalStatusDescption != null
|
|
|
|
|
? model.insuranceApprovalInPatient[indexInsurance].approvalStatusDescption ?? ""
|
|
|
|
|
: "",
|
|
|
|
|
color: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalStatusDescption !=
|
|
|
|
|
null
|
|
|
|
|
? "${model.insuranceApprovalInPatient[indexInsurance].approvalStatusDescption}" ==
|
|
|
|
|
"Approved" ||
|
|
|
|
|
"${model.insuranceApprovalInPatient[indexInsurance].approvalStatusDescption}" ==
|
|
|
|
|
"تمت الموافقة"
|
|
|
|
|
color: model.insuranceApprovalInPatient[indexInsurance].approvalStatusDescption != null
|
|
|
|
|
? "${model.insuranceApprovalInPatient[indexInsurance].approvalStatusDescption}" == "Approved" ||
|
|
|
|
|
"${model.insuranceApprovalInPatient[indexInsurance].approvalStatusDescption}" == "تمت الموافقة"
|
|
|
|
|
? AppGlobal.appGreenColor
|
|
|
|
|
: Color(0xffD02127)
|
|
|
|
|
: Color(0xffD02127),
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.7,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.doctorName!
|
|
|
|
|
.toUpperCase(),
|
|
|
|
|
model.insuranceApprovalInPatient[indexInsurance].doctorName!.toUpperCase(),
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
@ -128,105 +107,59 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.065,
|
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.065,
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.065,
|
|
|
|
|
width: MediaQuery.of(context).size.height * 0.065,
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: SizeConfig
|
|
|
|
|
.imageSizeMultiplier! *
|
|
|
|
|
12,
|
|
|
|
|
radius: SizeConfig.imageSizeMultiplier! * 12,
|
|
|
|
|
// radius: (52)
|
|
|
|
|
child: ClipRRect(
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(
|
|
|
|
|
50),
|
|
|
|
|
borderRadius: BorderRadius.circular(50),
|
|
|
|
|
child: Image.network(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.doctorImage!,
|
|
|
|
|
model.insuranceApprovalInPatient[indexInsurance].doctorImage!,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
backgroundColor:
|
|
|
|
|
Colors.transparent,
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
//mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 25.0,
|
|
|
|
|
),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.clinic +
|
|
|
|
|
": ",
|
|
|
|
|
value: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.clinicName!,
|
|
|
|
|
label: TranslationBase.of(context).clinic + ": ",
|
|
|
|
|
value: model.insuranceApprovalInPatient[indexInsurance].clinicName!,
|
|
|
|
|
),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.approvalNo +
|
|
|
|
|
": ",
|
|
|
|
|
value: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalNo
|
|
|
|
|
.toString(),
|
|
|
|
|
label: TranslationBase.of(context).approvalNo + ": ",
|
|
|
|
|
value: model.insuranceApprovalInPatient[indexInsurance].approvalNo.toString(),
|
|
|
|
|
),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: 'Unused Count:',
|
|
|
|
|
value: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.unUsedCount
|
|
|
|
|
.toString(),
|
|
|
|
|
value: model.insuranceApprovalInPatient[indexInsurance].unUsedCount.toString(),
|
|
|
|
|
),
|
|
|
|
|
CustomRow(label: TranslationBase.of(context).companyName + ": ", value: model.insuranceApprovalInPatient[indexInsurance].companyName.toString()),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.companyName +
|
|
|
|
|
": ",
|
|
|
|
|
value: 'Sample'),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.receiptOn +
|
|
|
|
|
": ",
|
|
|
|
|
label: TranslationBase.of(context).receiptOn + ": ",
|
|
|
|
|
value:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApprovalInPatient[indexInsurance].receiptOn ?? ""), isArabic: projectViewModel.isArabic)}'),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.expiryDate +
|
|
|
|
|
": ",
|
|
|
|
|
label: TranslationBase.of(context).expiryDate + ": ",
|
|
|
|
|
value:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApprovalInPatient[indexInsurance].expiryDate ?? ""), isArabic: projectViewModel.isArabic)}'),
|
|
|
|
|
],
|
|
|
|
|
@ -243,44 +176,34 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.procedure,
|
|
|
|
|
TranslationBase.of(context).procedure,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.9,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.9,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.status,
|
|
|
|
|
TranslationBase.of(context).status,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.9,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.9,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.usageStatus,
|
|
|
|
|
TranslationBase.of(context).usageStatus,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.9,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.9,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
@ -290,19 +213,12 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
|
itemCount: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.apporvalDetails!
|
|
|
|
|
.length,
|
|
|
|
|
itemBuilder:
|
|
|
|
|
(BuildContext context,
|
|
|
|
|
int index) {
|
|
|
|
|
itemCount: model.insuranceApprovalInPatient[indexInsurance].apporvalDetails!.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
return Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
@ -311,81 +227,36 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
?.apporvalDetails![
|
|
|
|
|
index]
|
|
|
|
|
?.procedureName ??
|
|
|
|
|
"",
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
letterSpacing:
|
|
|
|
|
-0.4,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xff575757),
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
model.insuranceApprovalInPatient[indexInsurance]?.apporvalDetails![index]?.procedureName ?? "",
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.7,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
color: Color(0xff575757),
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
?.apporvalDetails![
|
|
|
|
|
index]
|
|
|
|
|
?.status ??
|
|
|
|
|
"",
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
letterSpacing:
|
|
|
|
|
-0.4,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xff575757),
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
model.insuranceApprovalInPatient[indexInsurance]?.apporvalDetails![index]?.status ?? "",
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.7,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
color: Color(0xff575757),
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
?.apporvalDetails![
|
|
|
|
|
index]
|
|
|
|
|
?.isInvoicedDesc ??
|
|
|
|
|
"",
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
letterSpacing:
|
|
|
|
|
-0.4,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xff575757),
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
model.insuranceApprovalInPatient[indexInsurance]?.apporvalDetails![index]?.isInvoicedDesc ?? "",
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 2.7,
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
color: Color(0xff575757),
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -461,24 +332,9 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalStatusDescption !=
|
|
|
|
|
null
|
|
|
|
|
? model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalStatusDescption ??
|
|
|
|
|
""
|
|
|
|
|
: "",
|
|
|
|
|
color: model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalStatusDescption !=
|
|
|
|
|
null
|
|
|
|
|
? "${model.insuranceApproval[indexInsurance].approvalStatusDescption}" ==
|
|
|
|
|
"Approved"
|
|
|
|
|
model.insuranceApproval[indexInsurance].approvalStatusDescption != null ? model.insuranceApproval[indexInsurance].approvalStatusDescption ?? "" : "",
|
|
|
|
|
color: model.insuranceApproval[indexInsurance].approvalStatusDescption != null
|
|
|
|
|
? "${model.insuranceApproval[indexInsurance].approvalStatusDescption}" == "Approved"
|
|
|
|
|
? AppGlobal.appGreenColor
|
|
|
|
|
: Color(0xffD02127)
|
|
|
|
|
: Color(0xffD02127),
|
|
|
|
|
@ -488,10 +344,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[indexInsurance]
|
|
|
|
|
.doctorName!
|
|
|
|
|
.toUpperCase(),
|
|
|
|
|
model.insuranceApproval[indexInsurance].doctorName!.toUpperCase(),
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
@ -499,8 +352,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
@ -509,37 +361,26 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
height: 85.0,
|
|
|
|
|
width: 85.0,
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: SizeConfig
|
|
|
|
|
.imageSizeMultiplier! *
|
|
|
|
|
12,
|
|
|
|
|
radius: SizeConfig.imageSizeMultiplier! * 12,
|
|
|
|
|
// radius: (52)
|
|
|
|
|
child: ClipRRect(
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(
|
|
|
|
|
50),
|
|
|
|
|
borderRadius: BorderRadius.circular(50),
|
|
|
|
|
child: Image.network(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.doctorImage!,
|
|
|
|
|
model.insuranceApproval[indexInsurance].doctorImage!,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
width: 700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
backgroundColor:
|
|
|
|
|
Colors.transparent,
|
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding:
|
|
|
|
|
const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
//mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
@ -548,19 +389,13 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.clinic +
|
|
|
|
|
": ",
|
|
|
|
|
TranslationBase.of(context).clinic + ": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.clinicName!,
|
|
|
|
|
model.insuranceApproval[indexInsurance].clinicName!,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
@ -569,19 +404,12 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.approvalNo +
|
|
|
|
|
": ",
|
|
|
|
|
TranslationBase.of(context).approvalNo + ": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalNo
|
|
|
|
|
.toString(),
|
|
|
|
|
model.insuranceApproval[indexInsurance].approvalNo.toString(),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
@ -589,19 +417,12 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.unusedCount +
|
|
|
|
|
": ",
|
|
|
|
|
TranslationBase.of(context).unusedCount + ": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.unUsedCount
|
|
|
|
|
.toString(),
|
|
|
|
|
model.insuranceApproval[indexInsurance].unUsedCount.toString(),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
@ -609,10 +430,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.companyName +
|
|
|
|
|
": ",
|
|
|
|
|
TranslationBase.of(context).companyName + ": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
),
|
|
|
|
|
AppText('Sample')
|
|
|
|
|
@ -621,18 +439,14 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.receiptOn +
|
|
|
|
|
": ",
|
|
|
|
|
TranslationBase.of(context).receiptOn + ": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApproval[indexInsurance].rceiptOn!), isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w600,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -640,22 +454,14 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.expiryDate +
|
|
|
|
|
": ",
|
|
|
|
|
TranslationBase.of(context).expiryDate + ": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
),
|
|
|
|
|
if (model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.expiryDate !=
|
|
|
|
|
null)
|
|
|
|
|
if (model.insuranceApproval[indexInsurance].expiryDate != null)
|
|
|
|
|
AppText(
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApproval[indexInsurance].expiryDate!), isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w600,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -673,28 +479,24 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.procedure,
|
|
|
|
|
TranslationBase.of(context).procedure,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.status,
|
|
|
|
|
TranslationBase.of(context).status,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.usageStatus,
|
|
|
|
|
TranslationBase.of(context).usageStatus,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
@ -705,19 +507,13 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8.0),
|
|
|
|
|
child: (model.insuranceApproval[indexInsurance].apporvalDetails != null && model.insuranceApproval[indexInsurance].apporvalDetails!.isNotEmpty) ? ListView.builder(
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
|
|
|
|
child: (model.insuranceApproval[indexInsurance].apporvalDetails != null && model.insuranceApproval[indexInsurance].apporvalDetails!.isNotEmpty)
|
|
|
|
|
? ListView.builder(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: ScrollPhysics(),
|
|
|
|
|
itemCount: model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.apporvalDetails!
|
|
|
|
|
.length,
|
|
|
|
|
itemBuilder:
|
|
|
|
|
(BuildContext context,
|
|
|
|
|
int index) {
|
|
|
|
|
itemCount: model.insuranceApproval[indexInsurance].apporvalDetails!.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
return Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
@ -726,48 +522,24 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
?.apporvalDetails![
|
|
|
|
|
index]
|
|
|
|
|
?.procedureName ??
|
|
|
|
|
"",
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.start,
|
|
|
|
|
model.insuranceApproval[indexInsurance]?.apporvalDetails![index]?.procedureName ?? "",
|
|
|
|
|
textAlign: TextAlign.start,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
?.apporvalDetails![
|
|
|
|
|
index]
|
|
|
|
|
?.status ??
|
|
|
|
|
"",
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
model.insuranceApproval[indexInsurance]?.apporvalDetails![index]?.status ?? "",
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApproval[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
?.apporvalDetails![
|
|
|
|
|
index]
|
|
|
|
|
?.isInvoicedDesc ??
|
|
|
|
|
"",
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
model.insuranceApproval[indexInsurance]?.apporvalDetails![index]?.isInvoicedDesc ?? "",
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -782,7 +554,8 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}) : NoData(),
|
|
|
|
|
})
|
|
|
|
|
: NoData(),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|