|  |  |  | @ -50,6 +50,8 @@ class MyAppointmentsViewModel extends ChangeNotifier { | 
		
	
		
			
				|  |  |  |  |   void onTabChange(int index) { | 
		
	
		
			
				|  |  |  |  |     previouslySelectedTab = selectedTabIndex; | 
		
	
		
			
				|  |  |  |  |     selectedTabIndex = index; | 
		
	
		
			
				|  |  |  |  |     start = null; | 
		
	
		
			
				|  |  |  |  |     end = null; | 
		
	
		
			
				|  |  |  |  |     notifyListeners(); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
	
		
			
				
					|  |  |  | @ -451,12 +453,12 @@ class MyAppointmentsViewModel extends ChangeNotifier { | 
		
	
		
			
				|  |  |  |  |           filteredAppointmentList.add(element); | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |       }); | 
		
	
		
			
				|  |  |  |  |       filteredAppointmentList.addAll(sourceList); | 
		
	
		
			
				|  |  |  |  |     } else { | 
		
	
		
			
				|  |  |  |  |       filteredAppointmentList.clear(); | 
		
	
		
			
				|  |  |  |  |       sourceList.forEach((element) { | 
		
	
		
			
				|  |  |  |  |         try { | 
		
	
		
			
				|  |  |  |  |           var dateTime = DateUtil.convertStringToDate(element.appointmentDate); | 
		
	
		
			
				|  |  |  |  |           var dateTime = DateUtil.convertStringToDate(element.appointmentDate).provideDateOnly(); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |           if (start != null && end == null) { | 
		
	
		
			
				|  |  |  |  |             if (dateTime.isAtSameMomentAs(start)) { | 
		
	
		
			
				|  |  |  |  |               if (isUnderFilter(element)) { | 
		
	
	
		
			
				
					|  |  |  | @ -464,7 +466,7 @@ class MyAppointmentsViewModel extends ChangeNotifier { | 
		
	
		
			
				|  |  |  |  |               } | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |           } else if (start != null && end != null) { | 
		
	
		
			
				|  |  |  |  |             if ((dateTime.isAfter(start)) && (dateTime.isBefore(end))) { | 
		
	
		
			
				|  |  |  |  |             if ((dateTime.isAfter(start)) && ((dateTime.isBefore(end))||((dateTime.isAtSameMomentAs(end))))) { | 
		
	
		
			
				|  |  |  |  |               if (isUnderFilter(element)) { | 
		
	
		
			
				|  |  |  |  |                 filteredAppointmentList.add(element); | 
		
	
		
			
				|  |  |  |  |               } | 
		
	
	
		
			
				
					|  |  |  | 
 |