| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -66,7 +66,7 @@ class _LoginPageState extends State<LoginPage> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          for (final a in accountsBloc.accounts.value) { | 
					 | 
					 | 
					 | 
					          for (final a in accountsBloc.accounts.value) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            if (a.id == account.id) { | 
					 | 
					 | 
					 | 
					            if (a.id == account.id) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              ExceptionWidget.showSnackbar(context, AppLocalizations.of(context).errorAccountAlreadyExists); | 
					 | 
					 | 
					 | 
					              ExceptionWidget.showSnackbar(context, AppLocalizations.of(context).errorAccountAlreadyExists); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              _loginBloc.setServerURL(result.server); | 
					 | 
					 | 
					 | 
					              await _loginBloc.refresh(); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              return; | 
					 | 
					 | 
					 | 
					              return; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          } | 
					 | 
					 | 
					 | 
					          } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -168,9 +168,7 @@ class _LoginPageState extends State<LoginPage> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                height: 10, | 
					 | 
					 | 
					 | 
					                                height: 10, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ), | 
					 | 
					 | 
					 | 
					                              ), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ElevatedButton( | 
					 | 
					 | 
					 | 
					                              ElevatedButton( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                onPressed: () { | 
					 | 
					 | 
					 | 
					                                onPressed: _loginBloc.refresh, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  _loginBloc.setServerURL(serverURLSnapshot.data!); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                }, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                child: Text(AppLocalizations.of(context).loginOpenAgain), | 
					 | 
					 | 
					 | 
					                                child: Text(AppLocalizations.of(context).loginOpenAgain), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ), | 
					 | 
					 | 
					 | 
					                              ), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            ], | 
					 | 
					 | 
					 | 
					                            ], | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -224,17 +222,13 @@ class _LoginPageState extends State<LoginPage> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              if (serverConnectionStateSnapshot.data == ServerConnectionState.unreachable) ...[ | 
					 | 
					 | 
					 | 
					                              if (serverConnectionStateSnapshot.data == ServerConnectionState.unreachable) ...[ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ExceptionWidget( | 
					 | 
					 | 
					 | 
					                                ExceptionWidget( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  AppLocalizations.of(context).errorUnableToReachServer, | 
					 | 
					 | 
					 | 
					                                  AppLocalizations.of(context).errorUnableToReachServer, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  onRetry: () { | 
					 | 
					 | 
					 | 
					                                  onRetry: _loginBloc.refresh, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    _loginBloc.setServerURL(serverURLSnapshot.data); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  }, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ), | 
					 | 
					 | 
					 | 
					                                ), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ], | 
					 | 
					 | 
					 | 
					                              ], | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              if (serverConnectionStateSnapshot.data == ServerConnectionState.maintenanceMode) ...[ | 
					 | 
					 | 
					 | 
					                              if (serverConnectionStateSnapshot.data == ServerConnectionState.maintenanceMode) ...[ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ExceptionWidget( | 
					 | 
					 | 
					 | 
					                                ExceptionWidget( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  AppLocalizations.of(context).errorServerInMaintenanceMode, | 
					 | 
					 | 
					 | 
					                                  AppLocalizations.of(context).errorServerInMaintenanceMode, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  onRetry: () { | 
					 | 
					 | 
					 | 
					                                  onRetry: _loginBloc.refresh, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                    _loginBloc.setServerURL(serverURLSnapshot.data); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                  }, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                                ), | 
					 | 
					 | 
					 | 
					                                ), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                              ], | 
					 | 
					 | 
					 | 
					                              ], | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                            ], | 
					 | 
					 | 
					 | 
					                            ], | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |