|  |  |  | @ -1,4 +1,6 @@ | 
		
	
		
			
				|  |  |  |  | import 'package:doctor_app_flutter/config/config.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:doctor_app_flutter/config/size_config.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:doctor_app_flutter/util/date-utils.dart'; | 
		
	
	
		
			
				
					|  |  |  | @ -10,6 +12,8 @@ import 'package:doctor_app_flutter/widgets/shared/user-guid/CusomRow.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:flutter/cupertino.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:flutter/material.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:cached_network_image/cached_network_image.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hexcolor/hexcolor.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:provider/provider.dart'; | 
		
	
		
			
				|  |  |  |  | import '../../../util/extenstions.dart'; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | import 'ShowTimer.dart'; | 
		
	
	
		
			
				
					|  |  |  | @ -38,6 +42,7 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   Widget build(BuildContext context) { | 
		
	
		
			
				|  |  |  |  |     ProjectViewModel projectViewModel = Provider.of(context); | 
		
	
		
			
				|  |  |  |  |     String nationalityName = patientInfo.nationalityName != null | 
		
	
		
			
				|  |  |  |  |         ? patientInfo.nationalityName.trim() | 
		
	
		
			
				|  |  |  |  |         : patientInfo.nationality != null | 
		
	
	
		
			
				
					|  |  |  | @ -50,10 +55,19 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |     return Container( | 
		
	
		
			
				|  |  |  |  |         width: SizeConfig.screenWidth * 0.9, | 
		
	
		
			
				|  |  |  |  |         margin: EdgeInsets.all(6), | 
		
	
		
			
				|  |  |  |  |         padding: EdgeInsets.only(left: 0, right: 5, bottom: 0, top: 0), | 
		
	
		
			
				|  |  |  |  |         padding: EdgeInsets.only(left: projectViewModel.isArabic?5:0, right: projectViewModel.isArabic?0:5, bottom: 0, top: 0), | 
		
	
		
			
				|  |  |  |  |         decoration: BoxDecoration( | 
		
	
		
			
				|  |  |  |  |           borderRadius: BorderRadius.circular(10), | 
		
	
		
			
				|  |  |  |  |           color: Colors.white, | 
		
	
		
			
				|  |  |  |  |           shape: BoxShape.rectangle, | 
		
	
		
			
				|  |  |  |  |           boxShadow: [ | 
		
	
		
			
				|  |  |  |  |             BoxShadow( | 
		
	
		
			
				|  |  |  |  |               color: Color(0x0000000D), | 
		
	
		
			
				|  |  |  |  |               spreadRadius: 10, | 
		
	
		
			
				|  |  |  |  |               blurRadius: 2.7, | 
		
	
		
			
				|  |  |  |  |               offset: Offset(0, -3 ), // changes position of shadow | 
		
	
		
			
				|  |  |  |  |             ), | 
		
	
		
			
				|  |  |  |  |           ], | 
		
	
		
			
				|  |  |  |  |         ), | 
		
	
		
			
				|  |  |  |  |         child: CardWithBgWidget( | 
		
	
		
			
				|  |  |  |  |           padding: 0, | 
		
	
	
		
			
				
					|  |  |  | @ -63,18 +77,21 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |           bgColor: isFromLiveCare | 
		
	
		
			
				|  |  |  |  |               ? Colors.white | 
		
	
		
			
				|  |  |  |  |               : (isMyPatient && !isFromSearch) | 
		
	
		
			
				|  |  |  |  |                   ? Colors.green[500] | 
		
	
		
			
				|  |  |  |  |                   ? AppGlobal.appGreenColor | 
		
	
		
			
				|  |  |  |  |                   : patientInfo.patientStatusType == 43 | 
		
	
		
			
				|  |  |  |  |                       ? Colors.green[500] | 
		
	
		
			
				|  |  |  |  |                       ? AppGlobal.appGreenColor | 
		
	
		
			
				|  |  |  |  |                       : isMyPatient | 
		
	
		
			
				|  |  |  |  |                           ? Colors.green[500] | 
		
	
		
			
				|  |  |  |  |                           ? AppGlobal.appGreenColor | 
		
	
		
			
				|  |  |  |  |                           : isInpatient | 
		
	
		
			
				|  |  |  |  |                               ? Colors.white | 
		
	
		
			
				|  |  |  |  |                               : !isFromSearch | 
		
	
		
			
				|  |  |  |  |                                   ? Colors.red[800] | 
		
	
		
			
				|  |  |  |  |                                   : Colors.white, | 
		
	
		
			
				|  |  |  |  |           widget: Container( | 
		
	
		
			
				|  |  |  |  |               color: Colors.white, | 
		
	
		
			
				|  |  |  |  |               decoration: BoxDecoration( | 
		
	
		
			
				|  |  |  |  |                 borderRadius: BorderRadius.circular(10), | 
		
	
		
			
				|  |  |  |  |                 color: Colors.white, | 
		
	
		
			
				|  |  |  |  |               ), | 
		
	
		
			
				|  |  |  |  |               //  padding: EdgeInsets.only(left: 10, right: 0, bottom: 0), | 
		
	
		
			
				|  |  |  |  |               child: InkWell( | 
		
	
		
			
				|  |  |  |  |                 child: Column( | 
		
	
	
		
			
				
					|  |  |  | @ -94,7 +111,7 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                                           AppText( | 
		
	
		
			
				|  |  |  |  |                                             TranslationBase.of(context) | 
		
	
		
			
				|  |  |  |  |                                                 .arrivedP, | 
		
	
		
			
				|  |  |  |  |                                             color: Colors.green, | 
		
	
		
			
				|  |  |  |  |                                             color: AppGlobal.appGreenColor, | 
		
	
		
			
				|  |  |  |  |                                             fontWeight: FontWeight.bold, | 
		
	
		
			
				|  |  |  |  |                                             fontFamily: 'Poppins', | 
		
	
		
			
				|  |  |  |  |                                             fontSize: 10, | 
		
	
	
		
			
				
					|  |  |  | @ -117,7 +134,7 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                                                 ? 'Confirmed' | 
		
	
		
			
				|  |  |  |  |                                                 : 'Booked', | 
		
	
		
			
				|  |  |  |  |                                             color: patientInfo.status == 2 | 
		
	
		
			
				|  |  |  |  |                                                 ? Colors.green | 
		
	
		
			
				|  |  |  |  |                                                 ? AppGlobal.appGreenColor | 
		
	
		
			
				|  |  |  |  |                                                 : Colors.grey, | 
		
	
		
			
				|  |  |  |  |                                             fontWeight: FontWeight.bold, | 
		
	
		
			
				|  |  |  |  |                                             fontFamily: 'Poppins', | 
		
	
	
		
			
				
					|  |  |  | @ -154,7 +171,7 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                                                     ? 'Confirmed' | 
		
	
		
			
				|  |  |  |  |                                                     : 'Booked', | 
		
	
		
			
				|  |  |  |  |                                                 color: patientInfo.status == 2 | 
		
	
		
			
				|  |  |  |  |                                                     ? Colors.green | 
		
	
		
			
				|  |  |  |  |                                                     ? AppGlobal.appGreenColor | 
		
	
		
			
				|  |  |  |  |                                                     : Colors.grey, | 
		
	
		
			
				|  |  |  |  |                                                 fontWeight: FontWeight.bold, | 
		
	
		
			
				|  |  |  |  |                                                 fontFamily: 'Poppins', | 
		
	
	
		
			
				
					|  |  |  | @ -196,7 +213,7 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                                                     color: | 
		
	
		
			
				|  |  |  |  |                                                         patientInfo.status == 2 | 
		
	
		
			
				|  |  |  |  |                                                             ? Colors.grey | 
		
	
		
			
				|  |  |  |  |                                                             : Colors.green, | 
		
	
		
			
				|  |  |  |  |                                                             : AppGlobal.appGreenColor, | 
		
	
		
			
				|  |  |  |  |                                                     fontWeight: FontWeight.bold, | 
		
	
		
			
				|  |  |  |  |                                                     fontFamily: 'Poppins', | 
		
	
		
			
				|  |  |  |  |                                                     fontSize: 12, | 
		
	
	
		
			
				
					|  |  |  | @ -249,7 +266,7 @@ class PatientCard extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                           ), | 
		
	
		
			
				|  |  |  |  |                           AppText( | 
		
	
		
			
				|  |  |  |  |                             'My Patient', | 
		
	
		
			
				|  |  |  |  |                             color: Colors.green, | 
		
	
		
			
				|  |  |  |  |                             color: AppGlobal.appGreenColor, | 
		
	
		
			
				|  |  |  |  |                             fontWeight: FontWeight.bold, | 
		
	
		
			
				|  |  |  |  |                             fontFamily: 'Poppins', | 
		
	
		
			
				|  |  |  |  |                             fontSize: 12, | 
		
	
	
		
			
				
					|  |  |  | 
 |