|  |  |  | @ -26,11 +26,16 @@ class _ChatHomeState extends State<ChatHome> { | 
		
	
		
			
				|  |  |  |  |   PageController controller = PageController(); | 
		
	
		
			
				|  |  |  |  |   late ChatProviderModel data; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   void dispose() { | 
		
	
		
			
				|  |  |  |  |     data.clearAll(); | 
		
	
		
			
				|  |  |  |  |     super.dispose(); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   Widget build(BuildContext context) { | 
		
	
		
			
				|  |  |  |  |     data = Provider.of<ChatProviderModel>(context, listen: false); | 
		
	
		
			
				|  |  |  |  |     data.getUserAutoLoginToken().then((value){ | 
		
	
		
			
				|  |  |  |  |     data.getUserAutoLoginToken().then((value) { | 
		
	
		
			
				|  |  |  |  |       data.getUserRecentChats(); | 
		
	
		
			
				|  |  |  |  |     }); | 
		
	
		
			
				|  |  |  |  |     return Scaffold( | 
		
	
	
		
			
				
					|  |  |  | @ -41,7 +46,7 @@ class _ChatHomeState extends State<ChatHome> { | 
		
	
		
			
				|  |  |  |  |         showHomeButton: true, | 
		
	
		
			
				|  |  |  |  |       ), | 
		
	
		
			
				|  |  |  |  |       body: Column( | 
		
	
		
			
				|  |  |  |  |         children: [ | 
		
	
		
			
				|  |  |  |  |         children: <Widget>[ | 
		
	
		
			
				|  |  |  |  |           Container( | 
		
	
		
			
				|  |  |  |  |             padding: const EdgeInsets.only(left: 21, right: 21, top: 16, bottom: 16), | 
		
	
		
			
				|  |  |  |  |             decoration: const BoxDecoration( | 
		
	
	
		
			
				
					|  |  |  | @ -60,12 +65,7 @@ class _ChatHomeState extends State<ChatHome> { | 
		
	
		
			
				|  |  |  |  |               ), | 
		
	
		
			
				|  |  |  |  |             ), | 
		
	
		
			
				|  |  |  |  |             child: Row( | 
		
	
		
			
				|  |  |  |  |               children: [ | 
		
	
		
			
				|  |  |  |  |                 myTab(LocaleKeys.mychats.tr(), 0), | 
		
	
		
			
				|  |  |  |  |                 myTab( | 
		
	
		
			
				|  |  |  |  |                      LocaleKeys.favorite.tr(), | 
		
	
		
			
				|  |  |  |  |                     1) | 
		
	
		
			
				|  |  |  |  |               ], | 
		
	
		
			
				|  |  |  |  |               children: [myTab(LocaleKeys.mychats.tr(), 0), myTab(LocaleKeys.favorite.tr(), 1)], | 
		
	
		
			
				|  |  |  |  |             ), | 
		
	
		
			
				|  |  |  |  |           ), | 
		
	
		
			
				|  |  |  |  |           PageView( | 
		
	
	
		
			
				
					|  |  |  | @ -76,7 +76,7 @@ class _ChatHomeState extends State<ChatHome> { | 
		
	
		
			
				|  |  |  |  |                 tabIndex = pageIndex; | 
		
	
		
			
				|  |  |  |  |               }); | 
		
	
		
			
				|  |  |  |  |             }, | 
		
	
		
			
				|  |  |  |  |             children: [ChatHomeScreen(), ChatFavoriteUsersScreen()], | 
		
	
		
			
				|  |  |  |  |             children: <Widget>[ChatHomeScreen(), ChatFavoriteUsersScreen()], | 
		
	
		
			
				|  |  |  |  |           ).expanded, | 
		
	
		
			
				|  |  |  |  |         ], | 
		
	
		
			
				|  |  |  |  |       ), | 
		
	
	
		
			
				
					|  |  |  | 
 |