feat: enhance routing and connectivity handling
- Added a new route for connection issues, allowing users to navigate to a dedicated page when the server is unreachable. - Updated the RouterNotifier to manage navigation based on server connectivity status and authentication state. - Improved the handling of offline scenarios by integrating connectivity checks into the routing logic. - Enhanced localization support for connection issue messages in multiple languages. - Refactored the OfflineIndicator widget to streamline the display of connectivity status without unnecessary complexity.
This commit is contained in:
@@ -32,6 +32,17 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get pleaseCheckConnection => 'Controlla la connessione e riprova';
|
||||
|
||||
@override
|
||||
String get connectionIssueTitle => 'Impossibile raggiungere il server';
|
||||
|
||||
@override
|
||||
String get connectionIssueSubtitle =>
|
||||
'Riconnettiti per continuare oppure esci per scegliere un server diverso.';
|
||||
|
||||
@override
|
||||
String get stillOfflineMessage =>
|
||||
'Non riusciamo ancora a raggiungere il server. Controlla la connessione e riprova.';
|
||||
|
||||
@override
|
||||
String get account => 'Account';
|
||||
|
||||
@@ -431,10 +442,6 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get emptyImageData => 'Dati immagine vuoti';
|
||||
|
||||
@override
|
||||
String get offlineBanner =>
|
||||
'Sei offline. Alcune funzioni potrebbero essere limitate.';
|
||||
|
||||
@override
|
||||
String get featureRequiresInternet =>
|
||||
'Questa funzione richiede una connessione Internet';
|
||||
|
||||
Reference in New Issue
Block a user