@ -3,6 +3,7 @@ import 'package:doctor_app_flutter/core/viewModel/InsuranceViewModel.dart';
import ' package:doctor_app_flutter/core/viewModel/project_view_model.dart ' ;
import ' package:doctor_app_flutter/core/viewModel/project_view_model.dart ' ;
import ' package:doctor_app_flutter/core/model/patient/patiant_info_model.dart ' ;
import ' package:doctor_app_flutter/core/model/patient/patiant_info_model.dart ' ;
import ' package:doctor_app_flutter/screens/base/base_view.dart ' ;
import ' package:doctor_app_flutter/screens/base/base_view.dart ' ;
import ' package:doctor_app_flutter/screens/patients/In_patient/NoData.dart ' ;
import ' package:doctor_app_flutter/utils/date-utils.dart ' ;
import ' package:doctor_app_flutter/utils/date-utils.dart ' ;
import ' package:doctor_app_flutter/utils/translations_delegate_base_utils.dart ' ;
import ' package:doctor_app_flutter/utils/translations_delegate_base_utils.dart ' ;
import ' package:doctor_app_flutter/widgets/patients/patient_service_title.dart ' ;
import ' package:doctor_app_flutter/widgets/patients/patient_service_title.dart ' ;
@ -47,7 +48,8 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
? ( model ) = > model . getInsuranceApproval ( patient , appointmentNo: patient ! . appointmentNo , projectId: patient ! . projectId )
? ( model ) = > model . getInsuranceApproval ( patient , appointmentNo: patient ! . appointmentNo , projectId: patient ! . projectId )
: ( model ) = > model . getInsuranceApproval ( patient )
: ( model ) = > model . getInsuranceApproval ( patient )
: null ,
: null ,
builder: ( BuildContext context , InsuranceViewModel model , Widget ? child ) = > AppScaffold (
builder: ( BuildContext context , InsuranceViewModel model , Widget ? child ) = >
AppScaffold (
isShowAppBar: true ,
isShowAppBar: true ,
baseViewModel: model ,
baseViewModel: model ,
appBar: PatientProfileAppBar ( patient ! ) ,
appBar: PatientProfileAppBar ( patient ! ) ,
@ -79,25 +81,45 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: [
children: [
AppText (
AppText (
model . insuranceApprovalInPatient [ indexInsurance ] . approvalStatusDescption ! = null
model
? model . insuranceApprovalInPatient [ indexInsurance ] . approvalStatusDescption ? ? " "
. insuranceApprovalInPatient [
indexInsurance ]
. approvalStatusDescption ! =
null
? model
. insuranceApprovalInPatient [
indexInsurance ]
. approvalStatusDescption ? ?
" "
: " " ,
: " " ,
color: model . insuranceApprovalInPatient [ indexInsurance ] . approvalStatusDescption ! = null
color: model
? " ${ model . insuranceApprovalInPatient [ indexInsurance ] . approvalStatusDescption } " = = " Approved " | |
. insuranceApprovalInPatient [
" ${ model . insuranceApprovalInPatient [ indexInsurance ] . approvalStatusDescption } " = = " تمت الموافقة "
indexInsurance ]
. approvalStatusDescption ! =
null
? " ${ model . insuranceApprovalInPatient [ indexInsurance ] . approvalStatusDescption } " = =
" Approved " | |
" ${ model . insuranceApprovalInPatient [ indexInsurance ] . approvalStatusDescption } " = =
" تمت الموافقة "
? AppGlobal . appGreenColor
? AppGlobal . appGreenColor
: Color ( 0xffD02127 )
: Color ( 0xffD02127 )
: Color ( 0xffD02127 ) ,
: Color ( 0xffD02127 ) ,
letterSpacing: - 0.4 ,
letterSpacing: - 0.4 ,
fontWeight: FontWeight . w600 ,
fontWeight: FontWeight . w600 ,
fontSize: SizeConfig . getTextMultiplierBasedOnWidth ( ) * 2.7 ,
fontSize: SizeConfig
. getTextMultiplierBasedOnWidth ( ) *
2.7 ,
) ,
) ,
] ,
] ,
) ,
) ,
Row (
Row (
children: [
children: [
AppText (
AppText (
model . insuranceApprovalInPatient [ indexInsurance ] . doctorName ! . toUpperCase ( ) ,
model
. insuranceApprovalInPatient [
indexInsurance ]
. doctorName !
. toUpperCase ( ) ,
color: Color ( 0xff2E303A ) ,
color: Color ( 0xff2E303A ) ,
fontSize: 16 ,
fontSize: 16 ,
letterSpacing: - 0.64 ,
letterSpacing: - 0.64 ,
@ -106,59 +128,105 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
] ,
] ,
) ,
) ,
Padding (
Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding: const EdgeInsets . symmetric (
horizontal: 8.0 ) ,
child: Row (
child: Row (
children: [
children: [
Column (
Column (
children: [
children: [
Container (
Container (
height: MediaQuery . of ( context ) . size . height * 0.065 ,
height: MediaQuery . of ( context )
width: MediaQuery . of ( context ) . size . height * 0.065 ,
. size
. height *
0.065 ,
width: MediaQuery . of ( context )
. size
. height *
0.065 ,
child: CircleAvatar (
child: CircleAvatar (
radius: SizeConfig . imageSizeMultiplier ! * 12 ,
radius: SizeConfig
. imageSizeMultiplier ! *
12 ,
/ / radius: ( 52 )
/ / radius: ( 52 )
child: ClipRRect (
child: ClipRRect (
borderRadius: BorderRadius . circular ( 50 ) ,
borderRadius:
BorderRadius . circular (
50 ) ,
child: Image . network (
child: Image . network (
model . insuranceApprovalInPatient [ indexInsurance ] . doctorImage ! ,
model
. insuranceApprovalInPatient [
indexInsurance ]
. doctorImage ! ,
fit: BoxFit . fill ,
fit: BoxFit . fill ,
width: 700 ,
width: 700 ,
) ,
) ,
) ,
) ,
backgroundColor: Colors . transparent ,
backgroundColor:
Colors . transparent ,
) ,
) ,
) ,
) ,
] ,
] ,
) ,
) ,
Expanded (
Expanded (
child: Padding (
child: Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding:
const EdgeInsets . symmetric (
horizontal: 8.0 ) ,
child: Column (
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
crossAxisAlignment:
CrossAxisAlignment . start ,
/ / mainAxisAlignment: MainAxisAlignment . center ,
/ / mainAxisAlignment: MainAxisAlignment . center ,
children: [
children: [
SizedBox (
SizedBox (
height: 25.0 ,
height: 25.0 ,
) ,
) ,
CustomRow (
CustomRow (
label: TranslationBase . of ( context ) . clinic + " : " ,
label: TranslationBase . of (
value: model . insuranceApprovalInPatient [ indexInsurance ] . clinicName ! ,
context )
. clinic +
" : " ,
value: model
. insuranceApprovalInPatient [
indexInsurance ]
. clinicName ! ,
) ,
) ,
CustomRow (
CustomRow (
label: TranslationBase . of ( context ) . approvalNo + " : " ,
label: TranslationBase . of (
value: model . insuranceApprovalInPatient [ indexInsurance ] . approvalNo . toString ( ) ,
context )
. approvalNo +
" : " ,
value: model
. insuranceApprovalInPatient [
indexInsurance ]
. approvalNo
. toString ( ) ,
) ,
) ,
CustomRow (
CustomRow (
label: ' Unused Count: ' ,
label: ' Unused Count: ' ,
value: model . insuranceApprovalInPatient [ indexInsurance ] . unUsedCount . toString ( ) ,
value: model
. insuranceApprovalInPatient [
indexInsurance ]
. unUsedCount
. toString ( ) ,
) ,
) ,
CustomRow ( label: TranslationBase . of ( context ) . companyName + " : " , value: ' Sample ' ) ,
CustomRow (
CustomRow (
label: TranslationBase . of ( context ) . receiptOn + " : " ,
label: TranslationBase . of (
context )
. companyName +
" : " ,
value: ' Sample ' ) ,
CustomRow (
label: TranslationBase . of (
context )
. receiptOn +
" : " ,
value:
value:
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApprovalInPatient [ indexInsurance ] . receiptOn ? ? " " ) , isArabic: projectViewModel . isArabic ) } ' ) ,
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApprovalInPatient [ indexInsurance ] . receiptOn ? ? " " ) , isArabic: projectViewModel . isArabic ) } ' ) ,
CustomRow (
CustomRow (
label: TranslationBase . of ( context ) . expiryDate + " : " ,
label: TranslationBase . of (
context )
. expiryDate +
" : " ,
value:
value:
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApprovalInPatient [ indexInsurance ] . expiryDate ? ? " " ) , isArabic: projectViewModel . isArabic ) } ' ) ,
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApprovalInPatient [ indexInsurance ] . expiryDate ? ? " " ) , isArabic: projectViewModel . isArabic ) } ' ) ,
] ,
] ,
@ -175,34 +243,44 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
child: Column (
child: Column (
children: [
children: [
Padding (
Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding: const EdgeInsets . symmetric (
horizontal: 8.0 ) ,
child: Row (
child: Row (
children: [
children: [
Expanded (
Expanded (
child: AppText (
child: AppText (
TranslationBase . of ( context ) . procedure ,
TranslationBase . of ( context )
. procedure ,
fontWeight: FontWeight . w600 ,
fontWeight: FontWeight . w600 ,
color: Color ( 0xff2E303A ) ,
color: Color ( 0xff2E303A ) ,
letterSpacing: - 0.48 ,
letterSpacing: - 0.48 ,
fontSize: SizeConfig . getTextMultiplierBasedOnWidth ( ) * 2.9 ,
fontSize: SizeConfig
. getTextMultiplierBasedOnWidth ( ) *
2.9 ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: AppText (
child: AppText (
TranslationBase . of ( context ) . status ,
TranslationBase . of ( context )
. status ,
fontWeight: FontWeight . w600 ,
fontWeight: FontWeight . w600 ,
color: Color ( 0xff2E303A ) ,
color: Color ( 0xff2E303A ) ,
letterSpacing: - 0.48 ,
letterSpacing: - 0.48 ,
fontSize: SizeConfig . getTextMultiplierBasedOnWidth ( ) * 2.9 ,
fontSize: SizeConfig
. getTextMultiplierBasedOnWidth ( ) *
2.9 ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: AppText (
child: AppText (
TranslationBase . of ( context ) . usageStatus ,
TranslationBase . of ( context )
. usageStatus ,
fontWeight: FontWeight . w600 ,
fontWeight: FontWeight . w600 ,
color: Color ( 0xff2E303A ) ,
color: Color ( 0xff2E303A ) ,
letterSpacing: - 0.48 ,
letterSpacing: - 0.48 ,
fontSize: SizeConfig . getTextMultiplierBasedOnWidth ( ) * 2.9 ,
fontSize: SizeConfig
. getTextMultiplierBasedOnWidth ( ) *
2.9 ,
) ,
) ,
)
)
] ,
] ,
@ -212,12 +290,19 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
color: Colors . black ,
color: Colors . black ,
) ,
) ,
Padding (
Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding: const EdgeInsets . symmetric (
horizontal: 8.0 ) ,
child: ListView . builder (
child: ListView . builder (
shrinkWrap: true ,
shrinkWrap: true ,
physics: ScrollPhysics ( ) ,
physics: ScrollPhysics ( ) ,
itemCount: model . insuranceApprovalInPatient [ indexInsurance ] . apporvalDetails ! . length ,
itemCount: model
itemBuilder: ( BuildContext context , int index ) {
. insuranceApprovalInPatient [
indexInsurance ]
. apporvalDetails !
. length ,
itemBuilder:
( BuildContext context ,
int index ) {
return Container (
return Container (
child: Column (
child: Column (
children: [
children: [
@ -226,36 +311,81 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Expanded (
Expanded (
child: Container (
child: Container (
child: AppText (
child: AppText (
model . insuranceApprovalInPatient [ indexInsurance ] . apporvalDetails ! [ index ] . procedureName ? ? " " ,
model
textAlign: TextAlign . center ,
. insuranceApprovalInPatient [
fontSize: SizeConfig . getTextMultiplierBasedOnWidth ( ) * 2.7 ,
indexInsurance ]
letterSpacing: - 0.4 ,
? . apporvalDetails ! [
color: Color ( 0xff575757 ) ,
index ]
fontWeight: FontWeight . w500 ,
? . procedureName ? ?
" " ,
textAlign:
TextAlign
. center ,
fontSize:
SizeConfig
. getTextMultiplierBasedOnWidth ( ) *
2.7 ,
letterSpacing:
- 0.4 ,
color: Color (
0xff575757 ) ,
fontWeight:
FontWeight
. w500 ,
) ,
) ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: Container (
child: Container (
child: AppText (
child: AppText (
model . insuranceApprovalInPatient [ indexInsurance ] . apporvalDetails ! [ index ] . status ? ? " " ,
model
textAlign: TextAlign . center ,
. insuranceApprovalInPatient [
fontSize: SizeConfig . getTextMultiplierBasedOnWidth ( ) * 2.7 ,
indexInsurance ]
letterSpacing: - 0.4 ,
? . apporvalDetails ! [
color: Color ( 0xff575757 ) ,
index ]
fontWeight: FontWeight . w500 ,
? . status ? ?
" " ,
textAlign:
TextAlign
. center ,
fontSize:
SizeConfig
. getTextMultiplierBasedOnWidth ( ) *
2.7 ,
letterSpacing:
- 0.4 ,
color: Color (
0xff575757 ) ,
fontWeight:
FontWeight
. w500 ,
) ,
) ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: Container (
child: Container (
child: AppText (
child: AppText (
model . insuranceApprovalInPatient [ indexInsurance ] . apporvalDetails ! [ index ] . isInvoicedDesc ? ? " " ,
model
textAlign: TextAlign . center ,
. insuranceApprovalInPatient [
fontSize: SizeConfig . getTextMultiplierBasedOnWidth ( ) * 2.7 ,
indexInsurance ]
letterSpacing: - 0.4 ,
? . apporvalDetails ! [
color: Color ( 0xff575757 ) ,
index ]
fontWeight: FontWeight . w500 ,
? . isInvoicedDesc ? ?
" " ,
textAlign:
TextAlign
. center ,
fontSize:
SizeConfig
. getTextMultiplierBasedOnWidth ( ) *
2.7 ,
letterSpacing:
- 0.4 ,
color: Color (
0xff575757 ) ,
fontWeight:
FontWeight
. w500 ,
) ,
) ,
) ,
) ,
) ,
) ,
@ -331,9 +461,24 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: [
children: [
AppText (
AppText (
model . insuranceApproval [ indexInsurance ] . approvalStatusDescption ! = null ? model . insuranceApproval [ indexInsurance ] . approvalStatusDescption ? ? " " : " " ,
model
color: model . insuranceApproval [ indexInsurance ] . approvalStatusDescption ! = null
. insuranceApproval [
? " ${ model . insuranceApproval [ indexInsurance ] . approvalStatusDescption } " = = " Approved "
indexInsurance ]
. approvalStatusDescption ! =
null
? model
. insuranceApproval [
indexInsurance ]
. approvalStatusDescption ? ?
" "
: " " ,
color: model
. insuranceApproval [
indexInsurance ]
. approvalStatusDescption ! =
null
? " ${ model . insuranceApproval [ indexInsurance ] . approvalStatusDescption } " = =
" Approved "
? AppGlobal . appGreenColor
? AppGlobal . appGreenColor
: Color ( 0xffD02127 )
: Color ( 0xffD02127 )
: Color ( 0xffD02127 ) ,
: Color ( 0xffD02127 ) ,
@ -343,7 +488,10 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: [
children: [
AppText (
AppText (
model . insuranceApproval [ indexInsurance ] . doctorName ! . toUpperCase ( ) ,
model
. insuranceApproval [ indexInsurance ]
. doctorName !
. toUpperCase ( ) ,
color: Colors . black ,
color: Colors . black ,
fontSize: 18 ,
fontSize: 18 ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
@ -351,7 +499,8 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
] ,
] ,
) ,
) ,
Padding (
Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding: const EdgeInsets . symmetric (
horizontal: 8.0 ) ,
child: Row (
child: Row (
children: [
children: [
Column (
Column (
@ -360,26 +509,37 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
height: 85.0 ,
height: 85.0 ,
width: 85.0 ,
width: 85.0 ,
child: CircleAvatar (
child: CircleAvatar (
radius: SizeConfig . imageSizeMultiplier ! * 12 ,
radius: SizeConfig
. imageSizeMultiplier ! *
12 ,
/ / radius: ( 52 )
/ / radius: ( 52 )
child: ClipRRect (
child: ClipRRect (
borderRadius: BorderRadius . circular ( 50 ) ,
borderRadius:
BorderRadius . circular (
50 ) ,
child: Image . network (
child: Image . network (
model . insuranceApproval [ indexInsurance ] . doctorImage ! ,
model
. insuranceApproval [
indexInsurance ]
. doctorImage ! ,
fit: BoxFit . fill ,
fit: BoxFit . fill ,
width: 700 ,
width: 700 ,
) ,
) ,
) ,
) ,
backgroundColor: Colors . transparent ,
backgroundColor:
Colors . transparent ,
) ,
) ,
) ,
) ,
] ,
] ,
) ,
) ,
Expanded (
Expanded (
child: Padding (
child: Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding:
const EdgeInsets . symmetric (
horizontal: 8.0 ) ,
child: Column (
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
crossAxisAlignment:
CrossAxisAlignment . start ,
/ / mainAxisAlignment: MainAxisAlignment . center ,
/ / mainAxisAlignment: MainAxisAlignment . center ,
children: [
children: [
SizedBox (
SizedBox (
@ -388,13 +548,19 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: [
children: [
AppText (
AppText (
TranslationBase . of ( context ) . clinic + " : " ,
TranslationBase . of (
color: Colors . grey [ 500 ] ! ,
context )
. clinic +
" : " ,
color: Colors . grey [ 500 ] ,
fontSize: 14 ,
fontSize: 14 ,
) ,
) ,
Expanded (
Expanded (
child: AppText (
child: AppText (
model . insuranceApproval [ indexInsurance ] . clinicName ! ,
model
. insuranceApproval [
indexInsurance ]
. clinicName ! ,
fontSize: 14 ,
fontSize: 14 ,
) ,
) ,
)
)
@ -403,12 +569,19 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: < Widget > [
children: < Widget > [
AppText (
AppText (
TranslationBase . of ( context ) . approvalNo + " : " ,
TranslationBase . of (
color: Colors . grey [ 500 ] ! ,
context )
. approvalNo +
" : " ,
color: Colors . grey [ 500 ] ,
fontSize: 14 ,
fontSize: 14 ,
) ,
) ,
AppText (
AppText (
model . insuranceApproval [ indexInsurance ] . approvalNo . toString ( ) ,
model
. insuranceApproval [
indexInsurance ]
. approvalNo
. toString ( ) ,
fontSize: 14 ,
fontSize: 14 ,
)
)
] ,
] ,
@ -416,12 +589,19 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: < Widget > [
children: < Widget > [
AppText (
AppText (
TranslationBase . of ( context ) . unusedCount + " : " ,
TranslationBase . of (
color: Colors . grey [ 500 ] ! ,
context )
. unusedCount +
" : " ,
color: Colors . grey [ 500 ] ,
fontSize: 14 ,
fontSize: 14 ,
) ,
) ,
AppText (
AppText (
model . insuranceApproval [ indexInsurance ] . unUsedCount . toString ( ) ,
model
. insuranceApproval [
indexInsurance ]
. unUsedCount
. toString ( ) ,
fontSize: 14 ,
fontSize: 14 ,
)
)
] ,
] ,
@ -429,8 +609,11 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: < Widget > [
children: < Widget > [
AppText (
AppText (
TranslationBase . of ( context ) . companyName + " : " ,
TranslationBase . of (
color: Colors . grey [ 500 ] ! ,
context )
. companyName +
" : " ,
color: Colors . grey [ 500 ] ,
) ,
) ,
AppText ( ' Sample ' )
AppText ( ' Sample ' )
] ,
] ,
@ -438,14 +621,18 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: [
children: [
AppText (
AppText (
TranslationBase . of ( context ) . receiptOn + " : " ,
TranslationBase . of (
color: Colors . grey [ 500 ] ! ,
context )
. receiptOn +
" : " ,
color: Colors . grey [ 500 ] ,
) ,
) ,
Expanded (
Expanded (
child: AppText (
child: AppText (
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApproval [ indexInsurance ] . rceiptOn ! ) , isArabic: projectViewModel . isArabic ) } ' ,
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApproval [ indexInsurance ] . rceiptOn ! ) , isArabic: projectViewModel . isArabic ) } ' ,
color: Colors . black ,
color: Colors . black ,
fontWeight: FontWeight . w600 ,
fontWeight:
FontWeight . w600 ,
) ,
) ,
) ,
) ,
] ,
] ,
@ -453,14 +640,22 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Row (
Row (
children: [
children: [
AppText (
AppText (
TranslationBase . of ( context ) . expiryDate + " : " ,
TranslationBase . of (
color: Colors . grey [ 500 ] ! ,
context )
) ,
. expiryDate +
if ( model . insuranceApproval [ indexInsurance ] . expiryDate ! = null )
" : " ,
color: Colors . grey [ 500 ] ,
) ,
if ( model
. insuranceApproval [
indexInsurance ]
. expiryDate ! =
null )
AppText (
AppText (
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApproval [ indexInsurance ] . expiryDate ! ) , isArabic: projectViewModel . isArabic ) } ' ,
' ${ AppDateUtils . getDayMonthYearDateFormatted ( AppDateUtils . getDateTimeFromServerFormat ( model . insuranceApproval [ indexInsurance ] . expiryDate ! ) , isArabic: projectViewModel . isArabic ) } ' ,
color: Colors . black ,
color: Colors . black ,
fontWeight: FontWeight . w600 ,
fontWeight:
FontWeight . w600 ,
) ,
) ,
] ,
] ,
) ,
) ,
@ -478,24 +673,28 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
child: Column (
child: Column (
children: [
children: [
Padding (
Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding: const EdgeInsets . symmetric (
horizontal: 8.0 ) ,
child: Row (
child: Row (
children: [
children: [
Expanded (
Expanded (
child: AppText (
child: AppText (
TranslationBase . of ( context ) . procedure ,
TranslationBase . of ( context )
. procedure ,
fontWeight: FontWeight . w700 ,
fontWeight: FontWeight . w700 ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: AppText (
child: AppText (
TranslationBase . of ( context ) . status ,
TranslationBase . of ( context )
. status ,
fontWeight: FontWeight . w700 ,
fontWeight: FontWeight . w700 ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: AppText (
child: AppText (
TranslationBase . of ( context ) . usageStatus ,
TranslationBase . of ( context )
. usageStatus ,
fontWeight: FontWeight . w700 ,
fontWeight: FontWeight . w700 ,
) ,
) ,
)
)
@ -506,12 +705,19 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
color: Colors . black ,
color: Colors . black ,
) ,
) ,
Padding (
Padding (
padding: const EdgeInsets . symmetric ( horizontal: 8.0 ) ,
padding: const EdgeInsets . symmetric (
child: ListView . builder (
horizontal: 8.0 ) ,
child: ( model . insuranceApproval [ indexInsurance ] . apporvalDetails ! = null & & model . insuranceApproval [ indexInsurance ] . apporvalDetails ! . isNotEmpty ) ? ListView . builder (
shrinkWrap: true ,
shrinkWrap: true ,
physics: ScrollPhysics ( ) ,
physics: ScrollPhysics ( ) ,
itemCount: model . insuranceApproval [ indexInsurance ] . apporvalDetails ! . length ,
itemCount: model
itemBuilder: ( BuildContext context , int index ) {
. insuranceApproval [
indexInsurance ]
. apporvalDetails !
. length ,
itemBuilder:
( BuildContext context ,
int index ) {
return Container (
return Container (
child: Column (
child: Column (
children: [
children: [
@ -520,24 +726,48 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
Expanded (
Expanded (
child: Container (
child: Container (
child: AppText (
child: AppText (
model . insuranceApproval [ indexInsurance ] . apporvalDetails ! [ index ] . procedureName ? ? " " ,
model
textAlign: TextAlign . start ,
. insuranceApproval [
indexInsurance ]
? . apporvalDetails ! [
index ]
? . procedureName ? ?
" " ,
textAlign:
TextAlign
. start ,
) ,
) ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: Container (
child: Container (
child: AppText (
child: AppText (
model . insuranceApproval [ indexInsurance ] . apporvalDetails ! [ index ] . status ? ? " " ,
model
textAlign: TextAlign . center ,
. insuranceApproval [
indexInsurance ]
? . apporvalDetails ! [
index ]
? . status ? ?
" " ,
textAlign:
TextAlign
. center ,
) ,
) ,
) ,
) ,
) ,
) ,
Expanded (
Expanded (
child: Container (
child: Container (
child: AppText (
child: AppText (
model . insuranceApproval [ indexInsurance ] . apporvalDetails ! [ index ] . isInvoicedDesc ? ? " " ,
model
textAlign: TextAlign . center ,
. insuranceApproval [
indexInsurance ]
? . apporvalDetails ! [
index ]
? . isInvoicedDesc ? ?
" " ,
textAlign:
TextAlign
. center ,
) ,
) ,
) ,
) ,
) ,
) ,
@ -552,7 +782,7 @@ class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
] ,
] ,
) ,
) ,
) ;
) ;
} ) ,
} ) : NoData ( ) ,
) ,
) ,
] ,
] ,
) ,
) ,