|  |  |  | @ -67,68 +67,70 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  |             ], | 
		
	
		
			
				|  |  |  |  |           ), | 
		
	
		
			
				|  |  |  |  |           SizedBox(height: 24.h), | 
		
	
		
			
				|  |  |  |  |           ListView.builder( | 
		
	
		
			
				|  |  |  |  |             shrinkWrap: true, | 
		
	
		
			
				|  |  |  |  |             physics: NeverScrollableScrollPhysics(), | 
		
	
		
			
				|  |  |  |  |             padding: EdgeInsets.zero, | 
		
	
		
			
				|  |  |  |  |             itemCount: widget.profiles.where((profile) => profile.isRequestFromMySide ?? false).length, | 
		
	
		
			
				|  |  |  |  |             itemBuilder: (context, index) { | 
		
	
		
			
				|  |  |  |  |               final mySideProfiles = widget.profiles.where((profile) => profile.isRequestFromMySide ?? false).toList(); | 
		
	
		
			
				|  |  |  |  |               FamilyFileResponseModelLists profile = mySideProfiles[index]; | 
		
	
		
			
				|  |  |  |  |               return Container( | 
		
	
		
			
				|  |  |  |  |                 margin: EdgeInsets.only(bottom: 12.h), | 
		
	
		
			
				|  |  |  |  |                 padding: EdgeInsets.symmetric(vertical: 15.h, horizontal: 15.h), | 
		
	
		
			
				|  |  |  |  |                 decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24), | 
		
	
		
			
				|  |  |  |  |                 child: Opacity( | 
		
	
		
			
				|  |  |  |  |                   opacity: 1.0, | 
		
	
		
			
				|  |  |  |  |                   child: Column( | 
		
	
		
			
				|  |  |  |  |                     mainAxisSize: MainAxisSize.min, | 
		
	
		
			
				|  |  |  |  |                     crossAxisAlignment: CrossAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                     mainAxisAlignment: MainAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                     children: [ | 
		
	
		
			
				|  |  |  |  |                       CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                           height: 30.h, | 
		
	
		
			
				|  |  |  |  |                           chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                           backgroundColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                               ? AppColors.alertLightColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                               : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                                   ? AppColors.primaryRedColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                                   : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                                       ? AppColors.lightGreenColor | 
		
	
		
			
				|  |  |  |  |                                       : AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                           chipText: profile.statusDescription ?? "N/A", | 
		
	
		
			
				|  |  |  |  |                           iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                           isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                           borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                           textColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                               ? AppColors.alertLightColor | 
		
	
		
			
				|  |  |  |  |                               : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                                   ? AppColors.primaryRedColor | 
		
	
		
			
				|  |  |  |  |                                   : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                                       ? AppColors.textGreenColor | 
		
	
		
			
				|  |  |  |  |                                       : AppColors.alertColor), | 
		
	
		
			
				|  |  |  |  |                       SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                       Wrap(alignment: WrapAlignment.start, crossAxisAlignment: WrapCrossAlignment.start, runAlignment: WrapAlignment.start, spacing: 0.h, children: [ | 
		
	
		
			
				|  |  |  |  |                         (profile.patientName ?? "").toText14(isBold: false, isCenter: false, maxlines: 1, weight: FontWeight.w600), | 
		
	
		
			
				|  |  |  |  |                         (getStatusTextByRequest(FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false)) | 
		
	
		
			
				|  |  |  |  |                             .toText12(isBold: false, isCenter: false, maxLine: 1, fontWeight: FontWeight.w500, color: AppColors.greyTextColor), | 
		
	
		
			
				|  |  |  |  |                       ]), | 
		
	
		
			
				|  |  |  |  |                       SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                       CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                           height: 30.h, | 
		
	
		
			
				|  |  |  |  |                           chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                           backgroundColor: AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                           chipText: "Medical File: ${profile.responseId ?? "N/A"}", | 
		
	
		
			
				|  |  |  |  |                           iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                           isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                           borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                           textColor: AppColors.textColor), | 
		
	
		
			
				|  |  |  |  |                     ], | 
		
	
		
			
				|  |  |  |  |                   ), | 
		
	
		
			
				|  |  |  |  |           widget.profiles.where((profile) => profile.isRequestFromMySide ?? false).isEmpty | 
		
	
		
			
				|  |  |  |  |               ? Utils.getNoDataWidget(context) | 
		
	
		
			
				|  |  |  |  |               : ListView.builder( | 
		
	
		
			
				|  |  |  |  |                   shrinkWrap: true, | 
		
	
		
			
				|  |  |  |  |                   physics: NeverScrollableScrollPhysics(), | 
		
	
		
			
				|  |  |  |  |                   padding: EdgeInsets.zero, | 
		
	
		
			
				|  |  |  |  |                   itemCount: widget.profiles.where((profile) => profile.isRequestFromMySide ?? false).length, | 
		
	
		
			
				|  |  |  |  |                   itemBuilder: (context, index) { | 
		
	
		
			
				|  |  |  |  |                     final mySideProfiles = widget.profiles.where((profile) => profile.isRequestFromMySide ?? false).toList(); | 
		
	
		
			
				|  |  |  |  |                     FamilyFileResponseModelLists profile = mySideProfiles[index]; | 
		
	
		
			
				|  |  |  |  |                     return Container( | 
		
	
		
			
				|  |  |  |  |                       margin: EdgeInsets.only(bottom: 12.h), | 
		
	
		
			
				|  |  |  |  |                       padding: EdgeInsets.symmetric(vertical: 15.h, horizontal: 15.h), | 
		
	
		
			
				|  |  |  |  |                       decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24), | 
		
	
		
			
				|  |  |  |  |                       child: Opacity( | 
		
	
		
			
				|  |  |  |  |                         opacity: 1.0, | 
		
	
		
			
				|  |  |  |  |                         child: Column( | 
		
	
		
			
				|  |  |  |  |                           mainAxisSize: MainAxisSize.min, | 
		
	
		
			
				|  |  |  |  |                           crossAxisAlignment: CrossAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                           mainAxisAlignment: MainAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                           children: [ | 
		
	
		
			
				|  |  |  |  |                             CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                                 height: 30.h, | 
		
	
		
			
				|  |  |  |  |                                 chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                                 backgroundColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                                     ? AppColors.alertLightColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                                     : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                                         ? AppColors.primaryRedColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                                         : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                                             ? AppColors.lightGreenColor | 
		
	
		
			
				|  |  |  |  |                                             : AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                                 chipText: profile.statusDescription ?? "N/A", | 
		
	
		
			
				|  |  |  |  |                                 iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                                 isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                                 borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                                 textColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                                     ? AppColors.alertLightColor | 
		
	
		
			
				|  |  |  |  |                                     : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                                         ? AppColors.primaryRedColor | 
		
	
		
			
				|  |  |  |  |                                         : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                                             ? AppColors.textGreenColor | 
		
	
		
			
				|  |  |  |  |                                             : AppColors.alertColor), | 
		
	
		
			
				|  |  |  |  |                             SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                             Wrap(alignment: WrapAlignment.start, crossAxisAlignment: WrapCrossAlignment.start, runAlignment: WrapAlignment.start, spacing: 0.h, children: [ | 
		
	
		
			
				|  |  |  |  |                               (profile.patientName ?? "").toText14(isBold: false, isCenter: false, maxlines: 1, weight: FontWeight.w600), | 
		
	
		
			
				|  |  |  |  |                               (getStatusTextByRequest(FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false)) | 
		
	
		
			
				|  |  |  |  |                                   .toText12(isBold: false, isCenter: false, maxLine: 1, fontWeight: FontWeight.w500, color: AppColors.greyTextColor), | 
		
	
		
			
				|  |  |  |  |                             ]), | 
		
	
		
			
				|  |  |  |  |                             SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                             CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                                 height: 30.h, | 
		
	
		
			
				|  |  |  |  |                                 chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                                 backgroundColor: AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                                 chipText: "Medical File: ${profile.responseId ?? "N/A"}", | 
		
	
		
			
				|  |  |  |  |                                 iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                                 isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                                 borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                                 textColor: AppColors.textColor), | 
		
	
		
			
				|  |  |  |  |                           ], | 
		
	
		
			
				|  |  |  |  |                         ), | 
		
	
		
			
				|  |  |  |  |                       ), | 
		
	
		
			
				|  |  |  |  |                     ); | 
		
	
		
			
				|  |  |  |  |                   }, | 
		
	
		
			
				|  |  |  |  |                 ), | 
		
	
		
			
				|  |  |  |  |               ); | 
		
	
		
			
				|  |  |  |  |             }, | 
		
	
		
			
				|  |  |  |  |           ), | 
		
	
		
			
				|  |  |  |  |           SizedBox(height: 20.h), | 
		
	
		
			
				|  |  |  |  |         ], | 
		
	
		
			
				|  |  |  |  |       ); | 
		
	
	
		
			
				
					|  |  |  | @ -231,115 +233,118 @@ class _FamilyCardsState extends State<FamilyCards> { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   Widget manageFamily() { | 
		
	
		
			
				|  |  |  |  |     NavigationService navigationService = getIt<NavigationService>(); | 
		
	
		
			
				|  |  |  |  |     return ListView.builder( | 
		
	
		
			
				|  |  |  |  |       shrinkWrap: true, | 
		
	
		
			
				|  |  |  |  |       physics: NeverScrollableScrollPhysics(), | 
		
	
		
			
				|  |  |  |  |       padding: EdgeInsetsGeometry.zero, | 
		
	
		
			
				|  |  |  |  |       itemCount: widget.profiles.where((profile) => !(profile.isRequestFromMySide ?? false)).length, | 
		
	
		
			
				|  |  |  |  |       itemBuilder: (context, index) { | 
		
	
		
			
				|  |  |  |  |         final otherProfiles = widget.profiles.where((profile) => !(profile.isRequestFromMySide ?? false)).toList(); | 
		
	
		
			
				|  |  |  |  |         FamilyFileResponseModelLists profile = otherProfiles[index]; | 
		
	
		
			
				|  |  |  |  |         return Container( | 
		
	
		
			
				|  |  |  |  |           margin: EdgeInsets.only(bottom: 12.h), | 
		
	
		
			
				|  |  |  |  |           padding: EdgeInsets.symmetric(vertical: 15.h, horizontal: 15.h), | 
		
	
		
			
				|  |  |  |  |           decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24), | 
		
	
		
			
				|  |  |  |  |           child: Opacity( | 
		
	
		
			
				|  |  |  |  |             opacity: 1.0, | 
		
	
		
			
				|  |  |  |  |             child: Column( | 
		
	
		
			
				|  |  |  |  |               mainAxisSize: MainAxisSize.min, | 
		
	
		
			
				|  |  |  |  |               crossAxisAlignment: CrossAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |               mainAxisAlignment: MainAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |               children: [ | 
		
	
		
			
				|  |  |  |  |                 CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                   height: 30.h, | 
		
	
		
			
				|  |  |  |  |                   chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                   backgroundColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                       ? AppColors.alertLightColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                       : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                           ? AppColors.primaryRedColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                           : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                               ? AppColors.lightGreenColor | 
		
	
		
			
				|  |  |  |  |                               : AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                   chipText: profile.statusDescription ?? "N/A", | 
		
	
		
			
				|  |  |  |  |                   iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                   isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                   borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                   textColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                       ? AppColors.alertLightColor | 
		
	
		
			
				|  |  |  |  |                       : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                           ? AppColors.primaryRedColor | 
		
	
		
			
				|  |  |  |  |                           : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                               ? AppColors.textGreenColor | 
		
	
		
			
				|  |  |  |  |                               : AppColors.alertColor, | 
		
	
		
			
				|  |  |  |  |                 ), | 
		
	
		
			
				|  |  |  |  |                 SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                 Wrap( | 
		
	
		
			
				|  |  |  |  |                   alignment: WrapAlignment.start, | 
		
	
		
			
				|  |  |  |  |                   children: [ | 
		
	
		
			
				|  |  |  |  |                     (profile.patientName ?? "").toText14(isBold: false, isCenter: true, maxlines: 1, weight: FontWeight.w600), | 
		
	
		
			
				|  |  |  |  |                     (getStatusTextByRequest(FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false)).toText14( | 
		
	
		
			
				|  |  |  |  |                       isBold: false, | 
		
	
		
			
				|  |  |  |  |                       isCenter: true, | 
		
	
		
			
				|  |  |  |  |                       maxlines: 1, | 
		
	
		
			
				|  |  |  |  |                       weight: FontWeight.w500, | 
		
	
		
			
				|  |  |  |  |                       color: AppColors.greyTextColor, | 
		
	
		
			
				|  |  |  |  |                     ), | 
		
	
		
			
				|  |  |  |  |                   ], | 
		
	
		
			
				|  |  |  |  |                 ), | 
		
	
		
			
				|  |  |  |  |                 SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                 CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                   height: 30.h, | 
		
	
		
			
				|  |  |  |  |                   chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                   backgroundColor: AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                   chipText: "Medical File: ${profile.patientId ?? "N/A".needTranslation}", | 
		
	
		
			
				|  |  |  |  |                   iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                   isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                   borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                   textColor: AppColors.textColor, | 
		
	
		
			
				|  |  |  |  |                 ), | 
		
	
		
			
				|  |  |  |  |                 SizedBox(height: 16.h), | 
		
	
		
			
				|  |  |  |  |                 Row( | 
		
	
		
			
				|  |  |  |  |                   children: [ | 
		
	
		
			
				|  |  |  |  |                     profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                         ? SizedBox() | 
		
	
		
			
				|  |  |  |  |                         : Expanded( | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |     return widget.profiles.where((profile) => !(profile.isRequestFromMySide ?? false)).isEmpty | 
		
	
		
			
				|  |  |  |  |         ? Utils.getNoDataWidget(context) | 
		
	
		
			
				|  |  |  |  |         : ListView.builder( | 
		
	
		
			
				|  |  |  |  |             shrinkWrap: true, | 
		
	
		
			
				|  |  |  |  |             physics: NeverScrollableScrollPhysics(), | 
		
	
		
			
				|  |  |  |  |             padding: EdgeInsetsGeometry.zero, | 
		
	
		
			
				|  |  |  |  |             itemCount: widget.profiles.where((profile) => !(profile.isRequestFromMySide ?? false)).length, | 
		
	
		
			
				|  |  |  |  |             itemBuilder: (context, index) { | 
		
	
		
			
				|  |  |  |  |               final otherProfiles = widget.profiles.where((profile) => !(profile.isRequestFromMySide ?? false)).toList(); | 
		
	
		
			
				|  |  |  |  |               FamilyFileResponseModelLists profile = otherProfiles[index]; | 
		
	
		
			
				|  |  |  |  |               return Container( | 
		
	
		
			
				|  |  |  |  |                 margin: EdgeInsets.only(bottom: 12.h), | 
		
	
		
			
				|  |  |  |  |                 padding: EdgeInsets.symmetric(vertical: 15.h, horizontal: 15.h), | 
		
	
		
			
				|  |  |  |  |                 decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 24), | 
		
	
		
			
				|  |  |  |  |                 child: Opacity( | 
		
	
		
			
				|  |  |  |  |                   opacity: 1.0, | 
		
	
		
			
				|  |  |  |  |                   child: Column( | 
		
	
		
			
				|  |  |  |  |                     mainAxisSize: MainAxisSize.min, | 
		
	
		
			
				|  |  |  |  |                     crossAxisAlignment: CrossAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                     mainAxisAlignment: MainAxisAlignment.start, | 
		
	
		
			
				|  |  |  |  |                     children: [ | 
		
	
		
			
				|  |  |  |  |                       CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                         height: 30.h, | 
		
	
		
			
				|  |  |  |  |                         chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                         backgroundColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                             ? AppColors.alertLightColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                             : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                                 ? AppColors.primaryRedColor.withValues(alpha: 0.20) | 
		
	
		
			
				|  |  |  |  |                                 : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                                     ? AppColors.lightGreenColor | 
		
	
		
			
				|  |  |  |  |                                     : AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                         chipText: profile.statusDescription ?? "N/A", | 
		
	
		
			
				|  |  |  |  |                         iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                         isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                         borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                         textColor: profile.status == FamilyFileEnum.pending.toInt | 
		
	
		
			
				|  |  |  |  |                             ? AppColors.alertLightColor | 
		
	
		
			
				|  |  |  |  |                             : profile.status == FamilyFileEnum.rejected.toInt | 
		
	
		
			
				|  |  |  |  |                                 ? AppColors.primaryRedColor | 
		
	
		
			
				|  |  |  |  |                                 : profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                                     ? AppColors.textGreenColor | 
		
	
		
			
				|  |  |  |  |                                     : AppColors.alertColor, | 
		
	
		
			
				|  |  |  |  |                       ), | 
		
	
		
			
				|  |  |  |  |                       SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                       Wrap( | 
		
	
		
			
				|  |  |  |  |                         alignment: WrapAlignment.start, | 
		
	
		
			
				|  |  |  |  |                         children: [ | 
		
	
		
			
				|  |  |  |  |                           (profile.patientName ?? "").toText14(isBold: false, isCenter: true, maxlines: 1, weight: FontWeight.w600), | 
		
	
		
			
				|  |  |  |  |                           (getStatusTextByRequest(FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false)).toText14( | 
		
	
		
			
				|  |  |  |  |                             isBold: false, | 
		
	
		
			
				|  |  |  |  |                             isCenter: true, | 
		
	
		
			
				|  |  |  |  |                             maxlines: 1, | 
		
	
		
			
				|  |  |  |  |                             weight: FontWeight.w500, | 
		
	
		
			
				|  |  |  |  |                             color: AppColors.greyTextColor, | 
		
	
		
			
				|  |  |  |  |                           ), | 
		
	
		
			
				|  |  |  |  |                         ], | 
		
	
		
			
				|  |  |  |  |                       ), | 
		
	
		
			
				|  |  |  |  |                       SizedBox(height: 8.h), | 
		
	
		
			
				|  |  |  |  |                       CustomChipWidget( | 
		
	
		
			
				|  |  |  |  |                         height: 30.h, | 
		
	
		
			
				|  |  |  |  |                         chipType: ChipTypeEnum.alert, | 
		
	
		
			
				|  |  |  |  |                         backgroundColor: AppColors.lightGrayBGColor, | 
		
	
		
			
				|  |  |  |  |                         chipText: "Medical File: ${profile.patientId ?? "N/A".needTranslation}", | 
		
	
		
			
				|  |  |  |  |                         iconAsset: null, | 
		
	
		
			
				|  |  |  |  |                         isShowBorder: false, | 
		
	
		
			
				|  |  |  |  |                         borderRadius: 8.h, | 
		
	
		
			
				|  |  |  |  |                         textColor: AppColors.textColor, | 
		
	
		
			
				|  |  |  |  |                       ), | 
		
	
		
			
				|  |  |  |  |                       SizedBox(height: 16.h), | 
		
	
		
			
				|  |  |  |  |                       Row( | 
		
	
		
			
				|  |  |  |  |                         children: [ | 
		
	
		
			
				|  |  |  |  |                           profile.status == FamilyFileEnum.active.toInt | 
		
	
		
			
				|  |  |  |  |                               ? SizedBox() | 
		
	
		
			
				|  |  |  |  |                               : Expanded( | 
		
	
		
			
				|  |  |  |  |                                   child: CustomButton( | 
		
	
		
			
				|  |  |  |  |                                     height: 40.h, | 
		
	
		
			
				|  |  |  |  |                                     text: LocaleKeys.confirm.tr(), | 
		
	
		
			
				|  |  |  |  |                                     onPressed: () { | 
		
	
		
			
				|  |  |  |  |                                       navigationService.pop(); | 
		
	
		
			
				|  |  |  |  |                                       widget.onSelect(profile); | 
		
	
		
			
				|  |  |  |  |                                     }, | 
		
	
		
			
				|  |  |  |  |                                     backgroundColor: AppColors.lightGreenButtonColor, | 
		
	
		
			
				|  |  |  |  |                                     borderColor: AppColors.lightGreenButtonColor, | 
		
	
		
			
				|  |  |  |  |                                     textColor: AppColors.textGreenColor, | 
		
	
		
			
				|  |  |  |  |                                     icon: null, | 
		
	
		
			
				|  |  |  |  |                                   ), | 
		
	
		
			
				|  |  |  |  |                                 ), | 
		
	
		
			
				|  |  |  |  |                           profile.status == FamilyFileEnum.active.toInt ? SizedBox() : SizedBox(width: 8.h), | 
		
	
		
			
				|  |  |  |  |                           Expanded( | 
		
	
		
			
				|  |  |  |  |                             child: CustomButton( | 
		
	
		
			
				|  |  |  |  |                               height: 40.h, | 
		
	
		
			
				|  |  |  |  |                               text: LocaleKeys.confirm.tr(), | 
		
	
		
			
				|  |  |  |  |                               text: profile.status == FamilyFileEnum.active.toInt ? LocaleKeys.removeMember.tr() : LocaleKeys.cancel.tr(), | 
		
	
		
			
				|  |  |  |  |                               onPressed: () { | 
		
	
		
			
				|  |  |  |  |                                 navigationService.pop(); | 
		
	
		
			
				|  |  |  |  |                                 widget.onSelect(profile); | 
		
	
		
			
				|  |  |  |  |                                 widget.onRemove(profile); | 
		
	
		
			
				|  |  |  |  |                               }, | 
		
	
		
			
				|  |  |  |  |                               backgroundColor: AppColors.lightGreenButtonColor, | 
		
	
		
			
				|  |  |  |  |                               borderColor: AppColors.lightGreenButtonColor, | 
		
	
		
			
				|  |  |  |  |                               textColor: AppColors.textGreenColor, | 
		
	
		
			
				|  |  |  |  |                               backgroundColor: AppColors.secondaryLightRedColor, | 
		
	
		
			
				|  |  |  |  |                               borderColor: AppColors.secondaryLightRedColor, | 
		
	
		
			
				|  |  |  |  |                               textColor: AppColors.primaryRedColor, | 
		
	
		
			
				|  |  |  |  |                               icon: null, | 
		
	
		
			
				|  |  |  |  |                               iconColor: AppColors.primaryRedColor, | 
		
	
		
			
				|  |  |  |  |                             ), | 
		
	
		
			
				|  |  |  |  |                           ), | 
		
	
		
			
				|  |  |  |  |                     profile.status == FamilyFileEnum.active.toInt ? SizedBox() : SizedBox(width: 8.h), | 
		
	
		
			
				|  |  |  |  |                     Expanded( | 
		
	
		
			
				|  |  |  |  |                       child: CustomButton( | 
		
	
		
			
				|  |  |  |  |                         height: 40.h, | 
		
	
		
			
				|  |  |  |  |                         text: profile.status == FamilyFileEnum.active.toInt ? LocaleKeys.removeMember.tr() : LocaleKeys.cancel.tr(), | 
		
	
		
			
				|  |  |  |  |                         onPressed: () { | 
		
	
		
			
				|  |  |  |  |                           navigationService.pop(); | 
		
	
		
			
				|  |  |  |  |                           widget.onRemove(profile); | 
		
	
		
			
				|  |  |  |  |                         }, | 
		
	
		
			
				|  |  |  |  |                         backgroundColor: AppColors.secondaryLightRedColor, | 
		
	
		
			
				|  |  |  |  |                         borderColor: AppColors.secondaryLightRedColor, | 
		
	
		
			
				|  |  |  |  |                         textColor: AppColors.primaryRedColor, | 
		
	
		
			
				|  |  |  |  |                         icon: null, | 
		
	
		
			
				|  |  |  |  |                         iconColor: AppColors.primaryRedColor, | 
		
	
		
			
				|  |  |  |  |                         ], | 
		
	
		
			
				|  |  |  |  |                       ), | 
		
	
		
			
				|  |  |  |  |                     ), | 
		
	
		
			
				|  |  |  |  |                   ], | 
		
	
		
			
				|  |  |  |  |                     ], | 
		
	
		
			
				|  |  |  |  |                   ), | 
		
	
		
			
				|  |  |  |  |                 ), | 
		
	
		
			
				|  |  |  |  |               ], | 
		
	
		
			
				|  |  |  |  |             ), | 
		
	
		
			
				|  |  |  |  |           ), | 
		
	
		
			
				|  |  |  |  |         ); | 
		
	
		
			
				|  |  |  |  |       }, | 
		
	
		
			
				|  |  |  |  |     ); | 
		
	
		
			
				|  |  |  |  |               ); | 
		
	
		
			
				|  |  |  |  |             }, | 
		
	
		
			
				|  |  |  |  |           ); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   String getStatusTextByRequest(FamilyFileEnum status, bool isRequestFromMySide) { | 
		
	
	
		
			
				
					|  |  |  | 
 |