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:
cogwheel0
2025-10-01 23:26:12 +05:30
parent d899ca5f70
commit ebe6cec17c
16 changed files with 523 additions and 148 deletions

View File

@@ -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';