|
|
|
|
@ -5,9 +5,11 @@ import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/patient_service_title.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-app-bar.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/user-guid/CusomRow.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
@ -54,38 +56,16 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
AppScaffold(
|
|
|
|
|
isShowAppBar: true,
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
appBar: PatientProfileAppBar(
|
|
|
|
|
patient),
|
|
|
|
|
appBar: PatientProfileAppBar(patient),
|
|
|
|
|
body: patient.admissionNo != null
|
|
|
|
|
? SingleChildScrollView(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).insurance22,
|
|
|
|
|
fontSize: 15.0,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).approvals22,
|
|
|
|
|
fontSize: 30.0,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
ServiceTitle(
|
|
|
|
|
title: TranslationBase.of(context).insurance22,
|
|
|
|
|
subTitle: TranslationBase.of(context).approvals22,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
@ -128,6 +108,11 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
? Color(0xff359846)
|
|
|
|
|
: Color(0xffD02127)
|
|
|
|
|
: Color(0xffD02127),
|
|
|
|
|
letterSpacing: -0.4,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -139,9 +124,10 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.doctorName
|
|
|
|
|
.toUpperCase(),
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontSize: 18,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
letterSpacing: -0.64,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -153,8 +139,14 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 85.0,
|
|
|
|
|
width: 85.0,
|
|
|
|
|
height: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.065,
|
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.height *
|
|
|
|
|
0.065,
|
|
|
|
|
child: CircleAvatar(
|
|
|
|
|
radius: SizeConfig
|
|
|
|
|
.imageSizeMultiplier *
|
|
|
|
|
@ -192,112 +184,55 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 25.0,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.clinic +
|
|
|
|
|
": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.clinicName,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.clinic +
|
|
|
|
|
": ",
|
|
|
|
|
value: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.clinicName,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.approvalNo +
|
|
|
|
|
": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalNo
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'Unused Count:',
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.unUsedCount
|
|
|
|
|
.toString(),
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.companyName +
|
|
|
|
|
": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
),
|
|
|
|
|
AppText('Sample')
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.receiptOn +
|
|
|
|
|
": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApprovalInPatient[indexInsurance].receiptOn), isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.approvalNo +
|
|
|
|
|
": ",
|
|
|
|
|
value: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.approvalNo
|
|
|
|
|
.toString(),
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.expiryDate +
|
|
|
|
|
": ",
|
|
|
|
|
color: Colors.grey[500],
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApprovalInPatient[indexInsurance].expiryDate), isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight.w600,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: 'Unused Count:',
|
|
|
|
|
value: model
|
|
|
|
|
.insuranceApprovalInPatient[
|
|
|
|
|
indexInsurance]
|
|
|
|
|
.unUsedCount
|
|
|
|
|
.toString(),
|
|
|
|
|
),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.companyName +
|
|
|
|
|
": ",
|
|
|
|
|
value: 'Sample'),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.receiptOn +
|
|
|
|
|
": ",
|
|
|
|
|
value:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApprovalInPatient[indexInsurance].receiptOn ?? ""), isArabic: projectViewModel.isArabic)}'),
|
|
|
|
|
CustomRow(
|
|
|
|
|
label: TranslationBase.of(
|
|
|
|
|
context)
|
|
|
|
|
.expiryDate +
|
|
|
|
|
": ",
|
|
|
|
|
value:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(AppDateUtils.getDateTimeFromServerFormat(model.insuranceApprovalInPatient[indexInsurance].expiryDate ?? ""), isArabic: projectViewModel.isArabic)}'),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -320,21 +255,36 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.procedure,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.9,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.status,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.9,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.usageStatus,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xff2E303A),
|
|
|
|
|
letterSpacing: -0.48,
|
|
|
|
|
fontSize: SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.9,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
@ -374,7 +324,18 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
"",
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.start,
|
|
|
|
|
.center,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
letterSpacing:
|
|
|
|
|
-0.4,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xff575757),
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -391,6 +352,17 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
letterSpacing:
|
|
|
|
|
-0.4,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xff575757),
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -407,6 +379,17 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
|
|
|
|
textAlign:
|
|
|
|
|
TextAlign
|
|
|
|
|
.center,
|
|
|
|
|
fontSize:
|
|
|
|
|
SizeConfig
|
|
|
|
|
.getTextMultiplierBasedOnWidth() *
|
|
|
|
|
2.7,
|
|
|
|
|
letterSpacing:
|
|
|
|
|
-0.4,
|
|
|
|
|
color: Color(
|
|
|
|
|
0xff575757),
|
|
|
|
|
fontWeight:
|
|
|
|
|
FontWeight
|
|
|
|
|
.w500,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|