|  |  |  | @ -31,8 +31,9 @@ class BalancesDashboardWidget extends StatefulWidget { | 
		
	
		
			
				|  |  |  |  |   final String title; | 
		
	
		
			
				|  |  |  |  |   final List<PieChartModel> chartModelList; | 
		
	
		
			
				|  |  |  |  |   final bool isLeaveBalance; | 
		
	
		
			
				|  |  |  |  |   final String selectedEmp; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   const BalancesDashboardWidget(this.title, this.isLeaveBalance, {Key? key, this.chartModelList = const []}) : super(key: key); | 
		
	
		
			
				|  |  |  |  |   const BalancesDashboardWidget(this.title, this.isLeaveBalance, this.selectedEmp, {Key? key, this.chartModelList = const []}) : super(key: key); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   _BalancesDashboardWidgetState createState() { | 
		
	
	
		
			
				
					|  |  |  | @ -62,8 +63,8 @@ class _BalancesDashboardWidgetState extends State<BalancesDashboardWidget> { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   void changeAccrualDate() async { | 
		
	
		
			
				|  |  |  |  |     try { | 
		
	
		
			
				|  |  |  |  |       Utils.showLoading(context); | 
		
	
		
			
				|  |  |  |  |       List<GetAccrualBalancesList> accrualList = await DashboardApiClient().getAccrualBalances(DateFormat("MM/dd/yyyy").format(accrualDateTime), empID: selectedEmp); | 
		
	
		
			
				|  |  |  |  |       // Utils.showLoading(context); | 
		
	
		
			
				|  |  |  |  |       List<GetAccrualBalancesList> accrualList = await DashboardApiClient().getAccrualBalances(DateFormat("MM/dd/yyyy").format(accrualDateTime), empID: widget.selectedEmp); | 
		
	
		
			
				|  |  |  |  |       if (accrualList.isNotEmpty) { | 
		
	
		
			
				|  |  |  |  |         if (widget.isLeaveBalance) { | 
		
	
		
			
				|  |  |  |  |           leaveBalanceAccrual = accrualList[0]; | 
		
	
	
		
			
				
					|  |  |  | @ -79,7 +80,7 @@ class _BalancesDashboardWidgetState extends State<BalancesDashboardWidget> { | 
		
	
		
			
				|  |  |  |  |           ]; | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |       Utils.hideLoading(context); | 
		
	
		
			
				|  |  |  |  |       // Utils.hideLoading(context); | 
		
	
		
			
				|  |  |  |  |       setState(() {}); | 
		
	
		
			
				|  |  |  |  |     } catch (ex) { | 
		
	
		
			
				|  |  |  |  |       Utils.hideLoading(context); | 
		
	
	
		
			
				
					|  |  |  | 
 |