@ -38,8 +38,6 @@ import 'package:hmg_patient_app_new/presentation/medical_file/vaccine_list_page.
 
		
	
		
			
				import  ' package:hmg_patient_app_new/presentation/medical_file/widgets/lab_rad_card.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/presentation/medical_file/widgets/medical_file_card.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/presentation/medical_file/widgets/patient_sick_leave_card.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/presentation/my_family/my_Family.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/presentation/my_family/widget/my_family_sheet.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/presentation/prescriptions/prescriptions_list_page.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/services/navigation_service.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/theme/colors.dart ' ;  
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -51,7 +49,6 @@ import 'package:hmg_patient_app_new/widgets/input_widget.dart';
 
		
	
		
			
				import  ' package:hmg_patient_app_new/widgets/loader/bottomsheet_loader.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/widgets/routes/custom_page_route.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/widgets/shimmer/movies_shimmer_widget.dart ' ;  
		
	
		
			
				import  ' package:hmg_patient_app_new/widgets/transitions/fade_page.dart ' ;  
		
	
		
			
				import  ' package:provider/provider.dart ' ;  
		
	
		
			
				
 
		
	
		
			
				import  ' ../prescriptions/prescription_detail_page.dart ' ;  
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -502,7 +499,14 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                            ) , 
 
		
	
		
			
				                          ) , 
 
		
	
		
			
				                        ) . paddingSymmetrical ( 24. h ,  0. h ) 
 
		
	
		
			
				                      :  Utils . getNoDataWidget ( context ,  noDataText:  " You don't have any prescriptions yet. " . needTranslation ,  isSmallWidget:  true ,  width:  62 ,  height:  62 ) . paddingSymmetrical ( 24. h ,  0. h ) ; 
 
		
	
		
			
				                      :  Container ( 
 
		
	
		
			
				                              decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
 
		
	
		
			
				                                color:  AppColors . whiteColor , 
 
		
	
		
			
				                                borderRadius:  20. h , 
 
		
	
		
			
				                                hasShadow:  true , 
 
		
	
		
			
				                              ) , 
 
		
	
		
			
				                              child:  Utils . getNoDataWidget ( context ,  noDataText:  " You don't have any prescriptions yet. " . needTranslation ,  isSmallWidget:  true ,  width:  62 ,  height:  62 ) ) 
 
		
	
		
			
				                          . paddingSymmetrical ( 24. h ,  0. h ) ; 
 
		
	
		
			
				            } ) , 
 
		
	
		
			
				            SizedBox ( height:  24. h ) , 
 
		
	
		
			
				            / / My  Doctor  Section 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -551,7 +555,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                                  " https://hmgwebservices.com/Images/MobileImages/DUBAI/unkown_female.png " , 
 
		
	
		
			
				                                  width:  64. h , 
 
		
	
		
			
				                                  height:  64. h , 
 
		
	
		
			
				                                  fit:  BoxFit . fill , 
 
		
	
		
			
				                                  fit:  BoxFit . cover , 
 
		
	
		
			
				                                ) . circle ( 100 ) . toShimmer2 ( isShow:  true ,  radius:  50. h ) , 
 
		
	
		
			
				                                SizedBox ( height:  8. h ) , 
 
		
	
		
			
				                                Expanded ( 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -591,8 +595,14 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                                  ) , 
 
		
	
		
			
				                                ) , 
 
		
	
		
			
				                              ) 
 
		
	
		
			
				                            :  Utils . getNoDataWidget ( context ,  noDataText:  " You don't have any completed visits yet. " . needTranslation ,  isSmallWidget:  true ,  width:  62 ,  height:  62 ) 
 
		
	
		
			
				                                . paddingSymmetrical ( 24. h ,  0. h ) ; 
 
		
	
		
			
				                            :  Container ( 
 
		
	
		
			
				                                decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
 
		
	
		
			
				                                  color:  AppColors . whiteColor , 
 
		
	
		
			
				                                  borderRadius:  20. h , 
 
		
	
		
			
				                                  hasShadow:  true , 
 
		
	
		
			
				                                ) , 
 
		
	
		
			
				                                child:  Utils . getNoDataWidget ( context ,  noDataText:  " You don't have any completed visits yet. " . needTranslation ,  isSmallWidget:  true ,  width:  62 ,  height:  62 ) , 
 
		
	
		
			
				                              ) . paddingSymmetrical ( 24. h ,  0. h ) ; 
 
		
	
		
			
				                  } , 
 
		
	
		
			
				                  separatorBuilder:  ( BuildContext  cxt ,  int  index )  = >  SizedBox ( width:  8. h ) , 
 
		
	
		
			
				                ) , 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -602,7 +612,12 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				            " Others " . needTranslation . toText18 ( isBold:  true ) . paddingSymmetrical ( 24. h ,  0. h ) , 
 
		
	
		
			
				            SizedBox ( height:  16. h ) , 
 
		
	
		
			
				            GridView ( 
 
		
	
		
			
				              gridDelegate:  SliverGridDelegateWithFixedCrossAxisCount ( crossAxisCount:  3 ,  crossAxisSpacing:  13 ,  mainAxisSpacing:  13 ) , 
 
		
	
		
			
				              gridDelegate:  SliverGridDelegateWithFixedCrossAxisCount ( 
 
		
	
		
			
				                crossAxisCount:  3 , 
 
		
	
		
			
				                crossAxisSpacing:  16 , 
 
		
	
		
			
				                mainAxisSpacing:  16 , 
 
		
	
		
			
				                mainAxisExtent:  130 , 
 
		
	
		
			
				              ) , 
 
		
	
		
			
				              physics:  NeverScrollableScrollPhysics ( ) , 
 
		
	
		
			
				              padding:  EdgeInsets . zero , 
 
		
	
		
			
				              shrinkWrap:  true , 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -613,15 +628,15 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                  backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                  svgIcon:  AppAssets . eye_result_icon , 
 
		
	
		
			
				                  isLargeText:  true , 
 
		
	
		
			
				                  iconSize:  40 .h , 
 
		
	
		
			
				                  iconSize:  36 .h , 
 
		
	
		
			
				                ) , 
 
		
	
		
			
				                MedicalFileCard ( 
 
		
	
		
			
				                  label:  " Allergy  Info" . needTranslation , 
 
		
	
		
			
				                  label:  " Allergy          Info" . needTranslation , 
 
		
	
		
			
				                  textColor:  AppColors . blackColor , 
 
		
	
		
			
				                  backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                  svgIcon:  AppAssets . allergy_info_icon , 
 
		
	
		
			
				                  isLargeText:  true , 
 
		
	
		
			
				                  iconSize:  40 .h , 
 
		
	
		
			
				                  iconSize:  36 .h , 
 
		
	
		
			
				                ) , 
 
		
	
		
			
				                MedicalFileCard ( 
 
		
	
		
			
				                  label:  " Vaccine Info " . needTranslation , 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -629,7 +644,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                  backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                  svgIcon:  AppAssets . vaccine_info_icon , 
 
		
	
		
			
				                  isLargeText:  true , 
 
		
	
		
			
				                  iconSize:  40 .h , 
 
		
	
		
			
				                  iconSize:  36 .h , 
 
		
	
		
			
				                ) . onPress ( ( )  { 
 
		
	
		
			
				                  Navigator . of ( context ) . push ( 
 
		
	
		
			
				                    CustomPageRoute ( 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -661,37 +676,49 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                            DateUtil . convertStringToDate ( insuranceVM . patientInsuranceList . first . cardValidTo ) , 
 
		
	
		
			
				                          ) , 
 
		
	
		
			
				                        ) 
 
		
	
		
			
				                      :  Utils . getNoDataWidget ( 
 
		
	
		
			
				                          context , 
 
		
	
		
			
				                          noDataText:  " You don't have insurance registered with HMG. " . needTranslation , 
 
		
	
		
			
				                          isSmallWidget:  true , 
 
		
	
		
			
				                          width:  62 , 
 
		
	
		
			
				                          height:  62 , 
 
		
	
		
			
				                          callToActionButton:  CustomButton ( 
 
		
	
		
			
				                            icon:  AppAssets . update_insurance_card_icon , 
 
		
	
		
			
				                            iconColor:  AppColors . successColor , 
 
		
	
		
			
				                            iconSize:  15. h , 
 
		
	
		
			
				                            text:  " ${ LocaleKeys . updateInsurance . tr ( context:  context ) }   ${ LocaleKeys . updateInsuranceSubtitle . tr ( context:  context ) } " , 
 
		
	
		
			
				                            onPressed:  ( )  { 
 
		
	
		
			
				                              insuranceViewModel . setIsInsuranceUpdateDetailsLoading ( true ) ; 
 
		
	
		
			
				                              insuranceViewModel . getPatientInsuranceDetailsForUpdate ( 
 
		
	
		
			
				                                  appState . getAuthenticatedUser ( ) ! . patientId . toString ( ) ,  appState . getAuthenticatedUser ( ) ! . patientIdentificationNo . toString ( ) ) ; 
 
		
	
		
			
				                              showCommonBottomSheetWithoutHeight ( context ,  child:  PatientInsuranceCardUpdateCard ( ) ,  callBackFunc:  ( )  { } ,  title:  " " ,  isCloseButtonVisible:  false ,  isFullScreen:  false ) ; 
 
		
	
		
			
				                            } , 
 
		
	
		
			
				                            backgroundColor:  AppColors . bgGreenColor . withOpacity ( 0.20 ) , 
 
		
	
		
			
				                            borderColor:  AppColors . bgGreenColor . withOpacity ( 0.0 ) , 
 
		
	
		
			
				                            textColor:  AppColors . bgGreenColor , 
 
		
	
		
			
				                            fontSize:  14 , 
 
		
	
		
			
				                            fontWeight:  FontWeight . w500 , 
 
		
	
		
			
				                            borderRadius:  12 , 
 
		
	
		
			
				                            padding:  EdgeInsets . fromLTRB ( 10 ,  0 ,  10 ,  0 ) , 
 
		
	
		
			
				                            height:  40. h , 
 
		
	
		
			
				                          ) . paddingSymmetrical ( 64. h ,  0. h ) , 
 
		
	
		
			
				                        ) ; 
 
		
	
		
			
				                      :  Container ( 
 
		
	
		
			
				                          decoration:  RoundedRectangleBorder ( ) . toSmoothCornerDecoration ( 
 
		
	
		
			
				                            color:  AppColors . whiteColor , 
 
		
	
		
			
				                            borderRadius:  20. h , 
 
		
	
		
			
				                            hasShadow:  true , 
 
		
	
		
			
				                          ) , 
 
		
	
		
			
				                          child:  Utils . getNoDataWidget ( 
 
		
	
		
			
				                            context , 
 
		
	
		
			
				                            noDataText:  " You don't have insurance registered with HMG. " . needTranslation , 
 
		
	
		
			
				                            isSmallWidget:  true , 
 
		
	
		
			
				                            width:  62 , 
 
		
	
		
			
				                            height:  62 , 
 
		
	
		
			
				                            callToActionButton:  CustomButton ( 
 
		
	
		
			
				                              icon:  AppAssets . update_insurance_card_icon , 
 
		
	
		
			
				                              iconColor:  AppColors . successColor , 
 
		
	
		
			
				                              iconSize:  15. h , 
 
		
	
		
			
				                              text:  " ${ LocaleKeys . updateInsurance . tr ( context:  context ) }   ${ LocaleKeys . updateInsuranceSubtitle . tr ( context:  context ) } " , 
 
		
	
		
			
				                              onPressed:  ( )  { 
 
		
	
		
			
				                                insuranceViewModel . setIsInsuranceUpdateDetailsLoading ( true ) ; 
 
		
	
		
			
				                                insuranceViewModel . getPatientInsuranceDetailsForUpdate ( 
 
		
	
		
			
				                                    appState . getAuthenticatedUser ( ) ! . patientId . toString ( ) ,  appState . getAuthenticatedUser ( ) ! . patientIdentificationNo . toString ( ) ) ; 
 
		
	
		
			
				                                showCommonBottomSheetWithoutHeight ( context ,  child:  PatientInsuranceCardUpdateCard ( ) ,  callBackFunc:  ( )  { } ,  title:  " " ,  isCloseButtonVisible:  false ,  isFullScreen:  false ) ; 
 
		
	
		
			
				                              } , 
 
		
	
		
			
				                              backgroundColor:  AppColors . bgGreenColor . withOpacity ( 0.20 ) , 
 
		
	
		
			
				                              borderColor:  AppColors . bgGreenColor . withOpacity ( 0.0 ) , 
 
		
	
		
			
				                              textColor:  AppColors . bgGreenColor , 
 
		
	
		
			
				                              fontSize:  14 , 
 
		
	
		
			
				                              fontWeight:  FontWeight . w500 , 
 
		
	
		
			
				                              borderRadius:  12 , 
 
		
	
		
			
				                              padding:  EdgeInsets . fromLTRB ( 10 ,  0 ,  10 ,  0 ) , 
 
		
	
		
			
				                              height:  40. h , 
 
		
	
		
			
				                            ) . paddingOnly ( left:  12. h ,  right:  12. h ,  bottom:  12. h ) , 
 
		
	
		
			
				                          ) , 
 
		
	
		
			
				                        ) . paddingSymmetrical ( 24. h ,  0. h ) ; 
 
		
	
		
			
				            } ) , 
 
		
	
		
			
				            SizedBox ( height:  10. h ) , 
 
		
	
		
			
				            GridView ( 
 
		
	
		
			
				              gridDelegate:  SliverGridDelegateWithFixedCrossAxisCount ( crossAxisCount:  3 ,  crossAxisSpacing:  13 ,  mainAxisSpacing:  13 ) , 
 
		
	
		
			
				              gridDelegate:  SliverGridDelegateWithFixedCrossAxisCount ( 
 
		
	
		
			
				                crossAxisCount:  3 , 
 
		
	
		
			
				                crossAxisSpacing:  16 , 
 
		
	
		
			
				                mainAxisSpacing:  16 , 
 
		
	
		
			
				                mainAxisExtent:  140 , 
 
		
	
		
			
				              ) , 
 
		
	
		
			
				              physics:  NeverScrollableScrollPhysics ( ) , 
 
		
	
		
			
				              padding:  EdgeInsets . only ( top:  12 ) , 
 
		
	
		
			
				              shrinkWrap:  true , 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -701,7 +728,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                        textColor:  AppColors . blackColor , 
 
		
	
		
			
				                        backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                        svgIcon:  AppAssets . eye_result_icon , 
 
		
	
		
			
				                        isLargeText:  fals e, 
 
		
	
		
			
				                        isLargeText:  tru e, 
 
		
	
		
			
				                        iconSize:  36. h ) 
 
		
	
		
			
				                    . onPress ( ( )  { 
 
		
	
		
			
				                  Navigator . of ( context ) . push ( 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -715,21 +742,21 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                    textColor:  AppColors . blackColor , 
 
		
	
		
			
				                    backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                    svgIcon:  AppAssets . eye_result_icon , 
 
		
	
		
			
				                    isLargeText:  fals e, 
 
		
	
		
			
				                    isLargeText:  tru e, 
 
		
	
		
			
				                    iconSize:  36. h ) , 
 
		
	
		
			
				                MedicalFileCard ( 
 
		
	
		
			
				                    label:  " My Invoices           List " . needTranslation , 
 
		
	
		
			
				                    textColor:  AppColors . blackColor , 
 
		
	
		
			
				                    backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                    svgIcon:  AppAssets . eye_result_icon , 
 
		
	
		
			
				                    isLargeText:  fals e, 
 
		
	
		
			
				                    isLargeText:  tru e, 
 
		
	
		
			
				                    iconSize:  36. h ) , 
 
		
	
		
			
				                MedicalFileCard ( 
 
		
	
		
			
				                    label:  " Ancillary Orders List " . needTranslation , 
 
		
	
		
			
				                    textColor:  AppColors . blackColor , 
 
		
	
		
			
				                    backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                    svgIcon:  AppAssets . eye_result_icon , 
 
		
	
		
			
				                    isLargeText:  fals e, 
 
		
	
		
			
				                    isLargeText:  tru e, 
 
		
	
		
			
				                    iconSize:  36. h ) , 
 
		
	
		
			
				              ] , 
 
		
	
		
			
				            ) . paddingSymmetrical ( 24. h ,  0.0 ) , 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -761,7 +788,12 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				            } ) , 
 
		
	
		
			
				            SizedBox ( height:  16. h ) , 
 
		
	
		
			
				            GridView ( 
 
		
	
		
			
				              gridDelegate:  SliverGridDelegateWithFixedCrossAxisCount ( crossAxisCount:  3 ,  crossAxisSpacing:  6.5 ,  mainAxisSpacing:  6.5 ) , 
 
		
	
		
			
				              gridDelegate:  SliverGridDelegateWithFixedCrossAxisCount ( 
 
		
	
		
			
				                crossAxisCount:  3 , 
 
		
	
		
			
				                crossAxisSpacing:  16 , 
 
		
	
		
			
				                mainAxisSpacing:  16 , 
 
		
	
		
			
				                mainAxisExtent:  140 , 
 
		
	
		
			
				              ) , 
 
		
	
		
			
				              physics:  NeverScrollableScrollPhysics ( ) , 
 
		
	
		
			
				              padding:  EdgeInsets . zero , 
 
		
	
		
			
				              shrinkWrap:  true , 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -771,16 +803,16 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                  textColor:  AppColors . blackColor , 
 
		
	
		
			
				                  backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                  svgIcon:  AppAssets . eye_result_icon , 
 
		
	
		
			
				                  isLargeText:  fals e, 
 
		
	
		
			
				                  iconSize:  40 .h , 
 
		
	
		
			
				                  isLargeText:  tru e, 
 
		
	
		
			
				                  iconSize:  36 .h , 
 
		
	
		
			
				                ) , 
 
		
	
		
			
				                MedicalFileCard ( 
 
		
	
		
			
				                  label:  " Medical Reports " . needTranslation , 
 
		
	
		
			
				                  textColor:  AppColors . blackColor , 
 
		
	
		
			
				                  backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                  svgIcon:  AppAssets . allergy_info_icon , 
 
		
	
		
			
				                  isLargeText:  fals e, 
 
		
	
		
			
				                  iconSize:  40 .h , 
 
		
	
		
			
				                  isLargeText:  tru e, 
 
		
	
		
			
				                  iconSize:  36 .h , 
 
		
	
		
			
				                ) . onPress ( ( )  { 
 
		
	
		
			
				                  medicalFileViewModel . setIsPatientMedicalReportsLoading ( true ) ; 
 
		
	
		
			
				                  medicalFileViewModel . getPatientMedicalReportList ( ) ; 
 
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
			
			@ -795,8 +827,8 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
 
		
	
		
			
				                  textColor:  AppColors . blackColor , 
 
		
	
		
			
				                  backgroundColor:  AppColors . whiteColor , 
 
		
	
		
			
				                  svgIcon:  AppAssets . vaccine_info_icon , 
 
		
	
		
			
				                  isLargeText:  fals e, 
 
		
	
		
			
				                  iconSize:  40 .h , 
 
		
	
		
			
				                  isLargeText:  tru e, 
 
		
	
		
			
				                  iconSize:  36 .h , 
 
		
	
		
			
				                ) . onPress ( ( )  { 
 
		
	
		
			
				                  Navigator . of ( context ) . push ( 
 
		
	
		
			
				                    CustomPageRoute (