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 AppLocalizationsDe extends AppLocalizations {
|
||||
String get pleaseCheckConnection =>
|
||||
'Bitte überprüfe deine Verbindung und versuche es erneut';
|
||||
|
||||
@override
|
||||
String get connectionIssueTitle => 'Server nicht erreichbar';
|
||||
|
||||
@override
|
||||
String get connectionIssueSubtitle =>
|
||||
'Verbindung wiederherstellen oder abmelden, um einen anderen Server zu wählen.';
|
||||
|
||||
@override
|
||||
String get stillOfflineMessage =>
|
||||
'Der Server ist weiterhin nicht erreichbar. Prüfe deine Verbindung und versuche es erneut.';
|
||||
|
||||
@override
|
||||
String get account => 'Konto';
|
||||
|
||||
@@ -434,10 +445,6 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get emptyImageData => 'Leere Bilddaten';
|
||||
|
||||
@override
|
||||
String get offlineBanner =>
|
||||
'Du bist offline. Einige Funktionen sind eingeschränkt.';
|
||||
|
||||
@override
|
||||
String get featureRequiresInternet =>
|
||||
'Diese Funktion erfordert eine Internetverbindung';
|
||||
|
||||
Reference in New Issue
Block a user