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:
@@ -33,6 +33,17 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
String get pleaseCheckConnection =>
|
||||
'Veuillez vérifier votre connexion et réessayer';
|
||||
|
||||
@override
|
||||
String get connectionIssueTitle => 'Impossible d\'atteindre votre serveur';
|
||||
|
||||
@override
|
||||
String get connectionIssueSubtitle =>
|
||||
'Reconnectez-vous pour continuer ou déconnectez-vous pour choisir un autre serveur.';
|
||||
|
||||
@override
|
||||
String get stillOfflineMessage =>
|
||||
'Nous ne pouvons toujours pas joindre le serveur. Vérifiez votre connexion et réessayez.';
|
||||
|
||||
@override
|
||||
String get account => 'Compte';
|
||||
|
||||
@@ -439,10 +450,6 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get emptyImageData => 'Données d\'image vides';
|
||||
|
||||
@override
|
||||
String get offlineBanner =>
|
||||
'Vous êtes hors ligne. Certaines fonctions peuvent être limitées.';
|
||||
|
||||
@override
|
||||
String get featureRequiresInternet =>
|
||||
'Cette fonctionnalité nécessite une connexion Internet';
|
||||
|
||||
Reference in New Issue
Block a user