|  |  |  | @ -32,28 +32,14 @@ class ChatHomeScreen extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                     Padding( | 
		
	
		
			
				|  |  |  |  |                       padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 20), | 
		
	
		
			
				|  |  |  |  |                       child: TextField( | 
		
	
		
			
				|  |  |  |  |                         controller: m.search, | 
		
	
		
			
				|  |  |  |  |                         onChanged: (String val) { | 
		
	
		
			
				|  |  |  |  |                           m.filter(val); | 
		
	
		
			
				|  |  |  |  |                         }, | 
		
	
		
			
				|  |  |  |  |                         decoration: InputDecoration( | 
		
	
		
			
				|  |  |  |  |                           border: OutlineInputBorder( | 
		
	
		
			
				|  |  |  |  |                             borderRadius: BorderRadius.circular(5), | 
		
	
		
			
				|  |  |  |  |                             borderSide: const BorderSide( | 
		
	
		
			
				|  |  |  |  |                               color: Color(0xFFE5E5E5), | 
		
	
		
			
				|  |  |  |  |                             ), | 
		
	
		
			
				|  |  |  |  |                           ), | 
		
	
		
			
				|  |  |  |  |                           focusedBorder: OutlineInputBorder( | 
		
	
		
			
				|  |  |  |  |                             borderRadius: BorderRadius.circular(5), | 
		
	
		
			
				|  |  |  |  |                             borderSide: const BorderSide( | 
		
	
		
			
				|  |  |  |  |                               color: Color(0xFFE5E5E5), | 
		
	
		
			
				|  |  |  |  |                             ), | 
		
	
		
			
				|  |  |  |  |                           ), | 
		
	
		
			
				|  |  |  |  |                           enabledBorder: OutlineInputBorder( | 
		
	
		
			
				|  |  |  |  |                             borderRadius: BorderRadius.circular(5), | 
		
	
		
			
				|  |  |  |  |                             borderSide: const BorderSide( | 
		
	
		
			
				|  |  |  |  |                               color: Color(0xFFE5E5E5), | 
		
	
		
			
				|  |  |  |  |                             ), | 
		
	
		
			
				|  |  |  |  |                           ), | 
		
	
		
			
				|  |  |  |  |                           border: fieldBorder(radius: 5, color: 0xFFE5E5E5), | 
		
	
		
			
				|  |  |  |  |                           focusedBorder: fieldBorder(radius: 5, color: 0xFFE5E5E5), | 
		
	
		
			
				|  |  |  |  |                           enabledBorder: fieldBorder(radius: 5, color: 0xFFE5E5E5), | 
		
	
		
			
				|  |  |  |  |                           contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 10), | 
		
	
		
			
				|  |  |  |  |                           hintText: LocaleKeys.searchfromchat.tr(), | 
		
	
		
			
				|  |  |  |  |                           hintStyle: const TextStyle(color: MyColors.lightTextColor, fontStyle: FontStyle.italic), | 
		
	
	
		
			
				
					|  |  |  | @ -73,7 +59,7 @@ class ChatHomeScreen extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                             height: 55, | 
		
	
		
			
				|  |  |  |  |                             child: ListTile( | 
		
	
		
			
				|  |  |  |  |                               leading: Stack( | 
		
	
		
			
				|  |  |  |  |                                 children: [ | 
		
	
		
			
				|  |  |  |  |                                 children: <Widget>[ | 
		
	
		
			
				|  |  |  |  |                                   SvgPicture.asset( | 
		
	
		
			
				|  |  |  |  |                                     "assets/images/user.svg", | 
		
	
		
			
				|  |  |  |  |                                     height: 48, | 
		
	
	
		
			
				
					|  |  |  | @ -144,12 +130,12 @@ class ChatHomeScreen extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |                                 Navigator.pushNamed( | 
		
	
		
			
				|  |  |  |  |                                   context, | 
		
	
		
			
				|  |  |  |  |                                   AppRoutes.chatDetailed, | 
		
	
		
			
				|  |  |  |  |                                   arguments: {"targetUser": m.searchedChats![index], "isNewChat" : false}, | 
		
	
		
			
				|  |  |  |  |                                   arguments: {"targetUser": m.searchedChats![index], "isNewChat": false}, | 
		
	
		
			
				|  |  |  |  |                                 ).then((Object? value) { | 
		
	
		
			
				|  |  |  |  |                                   m.clearSelections(); | 
		
	
		
			
				|  |  |  |  |                                   m.notifyListeners(); | 
		
	
		
			
				|  |  |  |  |                                 }); | 
		
	
		
			
				|  |  |  |  |                               }, | 
		
	
		
			
				|  |  |  |  |                               onLongPress: () {}, | 
		
	
		
			
				|  |  |  |  |                             ), | 
		
	
		
			
				|  |  |  |  |                           ); | 
		
	
		
			
				|  |  |  |  |                         }, | 
		
	
	
		
			
				
					|  |  |  | @ -201,4 +187,13 @@ class ChatHomeScreen extends StatelessWidget { | 
		
	
		
			
				|  |  |  |  |       ), | 
		
	
		
			
				|  |  |  |  |     ); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   OutlineInputBorder fieldBorder({required double radius, required int color}) { | 
		
	
		
			
				|  |  |  |  |     return OutlineInputBorder( | 
		
	
		
			
				|  |  |  |  |       borderRadius: BorderRadius.circular(radius), | 
		
	
		
			
				|  |  |  |  |       borderSide: BorderSide( | 
		
	
		
			
				|  |  |  |  |         color: Color(color), | 
		
	
		
			
				|  |  |  |  |       ), | 
		
	
		
			
				|  |  |  |  |     ); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | } | 
		
	
	
		
			
				
					|  |  |  | 
 |