|  |  |  | @ -14,6 +14,7 @@ import 'package:hmg_patient_app_new/services/dialog_service.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/services/navigation_service.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/theme/colors.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/chip/app_custom_chip_widget.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/chip/custom_chip_widget.dart'; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | class FamilyCards extends StatefulWidget { | 
		
	
	
		
			
				
					|  |  |  | @ -88,9 +89,9 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  |                           crossAxisAlignment: CrossAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                           mainAxisAlignment: MainAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                           children: [ | 
		
	
		
			
				|  |  |  |  |                             CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                                 height: 30.h, | 
		
	
		
			
				|  |  |  |  |                                 chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                             AppCustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                                 // height: 30.h, | 
		
	
		
			
				|  |  |  |  |                                 // chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                                 backgroundColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                                     ? AppColors.alertLightColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                                     : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
	
		
			
				
					|  |  |  | @ -98,10 +99,10 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  |                                         : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                                             ? AppColors.lightGreenColor | 
		
	
		
			
				|  |  |  |  |                                             : AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                                 chipText: profile.statusDescription ?? "N/A", | 
		
	
		
			
				|  |  |  |  |                                 iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                                 isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                                 borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                                  labelText: profile.statusDescription ?? "N/A", | 
		
	
		
			
				|  |  |  |  |                                 // iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                                 // isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                                 // borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                                 textColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                                     ? AppColors.alertLightColor | 
		
	
		
			
				|  |  |  |  |                                     : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
	
		
			
				
					|  |  |  | @ -116,14 +117,14 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  |                                   .toText12(isBold: false, isCenter: false, maxLine: 1, fontWeight: FontWeight.w500, color: AppColors.greyTextColor), | 
		
	
		
			
				|  |  |  |  |                             ]), | 
		
	
		
			
				|  |  |  |  |                             SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                             CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                                 height: 30.h, | 
		
	
		
			
				|  |  |  |  |                                 chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                             AppCustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                                 // height: 30.h, | 
		
	
		
			
				|  |  |  |  |                                 // chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                                 backgroundColor: AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                                 chipText: "Medical File: ${profile.responseId ?? "N/A"}", | 
		
	
		
			
				|  |  |  |  |                                 iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                                 isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                                 borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                                 labelText: "Medical File: ${profile.responseId ?? "N/A"}", | 
		
	
		
			
				|  |  |  |  |                                 // iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                                 // isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                                 // borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                                 textColor: AppColors.textColor), | 
		
	
		
			
				|  |  |  |  |                           ], | 
		
	
		
			
				|  |  |  |  |                         ), | 
		
	
	
		
			
				
					|  |  |  | @ -172,22 +173,22 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  |                       SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                       (profile.patientName ?? "Unknown").toText14(isBold: false, isCenter: true, maxlines: 1, weight: FontWeight.w600), | 
		
	
		
			
				|  |  |  |  |                       SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                       CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                           chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                       AppCustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                           // chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                           backgroundColor: AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                           chipText: "Relation:${profile.relationship ?? "N/A"}", | 
		
	
		
			
				|  |  |  |  |                           iconAsset: AppAssets.heart, | 
		
	
		
			
				|  |  |  |  |                           isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                           borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                           labelText: "Relation:${profile.relationship ?? "N/A"}", | 
		
	
		
			
				|  |  |  |  |                           icon: AppAssets.heart, | 
		
	
		
			
				|  |  |  |  |                           // isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                           // borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                           textColor: AppColors.textColor), | 
		
	
		
			
				|  |  |  |  |                       widget.isShowDetails ? SizedBox(height: 4.h) : SizedBox(), | 
		
	
		
			
				|  |  |  |  |                       widget.isShowDetails | 
		
	
		
			
				|  |  |  |  |                           ? CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                               chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                           ? AppCustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                               // chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                               backgroundColor: AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                               chipText: "Age:${profile.age ?? "N/A"} Years", | 
		
	
		
			
				|  |  |  |  |                               isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                               borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                               labelText: "Age:${profile.age ?? "N/A"} Years", | 
		
	
		
			
				|  |  |  |  |                               // isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                               // borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                               textColor: AppColors.textColor, | 
		
	
		
			
				|  |  |  |  |                             ) | 
		
	
		
			
				|  |  |  |  |                           : SizedBox(), | 
		
	
	
		
			
				
					|  |  |  | @ -208,6 +209,7 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  |                         textColor: isActive || !canSwitch ? AppColors.greyTextColor : AppColors.primaryRedColor, | 
		
	
		
			
				|  |  |  |  |                         fontSize: 13.h, | 
		
	
		
			
				|  |  |  |  |                         icon: isActive ? AppAssets.activeCheck : AppAssets.switch_user, | 
		
	
		
			
				|  |  |  |  |                         iconSize: 18.h, | 
		
	
		
			
				|  |  |  |  |                         iconColor: isActive || !canSwitch ? (isActive ? null : AppColors.greyTextColor) : AppColors.primaryRedColor, | 
		
	
		
			
				|  |  |  |  |                         padding: EdgeInsets.symmetric(vertical: 0, horizontal: 0), | 
		
	
		
			
				|  |  |  |  |                       ).paddingOnly(top: 0, bottom: 0), | 
		
	
	
		
			
				
					|  |  |  | @ -318,6 +320,7 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  |                                     backgroundColor: AppColors.lightGreenButtonColor, | 
		
	
		
			
				|  |  |  |  |                                     borderColor: AppColors.lightGreenButtonColor, | 
		
	
		
			
				|  |  |  |  |                                     textColor: AppColors.textGreenColor, | 
		
	
		
			
				|  |  |  |  |                                     borderWidth: 0, | 
		
	
		
			
				|  |  |  |  |                                     icon: null, | 
		
	
		
			
				|  |  |  |  |                                   ), | 
		
	
		
			
				|  |  |  |  |                                 ), | 
		
	
	
		
			
				
					|  |  |  | 
 |