TF-934 Add page not found
This commit is contained in:
@@ -2569,4 +2569,22 @@ class AppLocalizations {
|
||||
'Create a rule with this email',
|
||||
name: 'quickCreatingRule');
|
||||
}
|
||||
|
||||
String get titlePageNotFound {
|
||||
return Intl.message(
|
||||
'Oops, we can’t find that page',
|
||||
name: 'titlePageNotFound');
|
||||
}
|
||||
|
||||
String get subTitlePageNotFound {
|
||||
return Intl.message(
|
||||
'It is possible that your destination page has disappeared or belongs to another account.',
|
||||
name: 'subTitlePageNotFound');
|
||||
}
|
||||
|
||||
String get page404 {
|
||||
return Intl.message(
|
||||
'Page 404',
|
||||
name: 'page404');
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,7 @@ import 'package:tmail_ui_user/features/manage_account/presentation/manage_accoun
|
||||
import 'package:tmail_ui_user/features/manage_account/presentation/manage_account_dashboard_view.dart' deferred as manage_account_dashboard;
|
||||
import 'package:tmail_ui_user/features/session/presentation/session_page_bindings.dart';
|
||||
import 'package:tmail_ui_user/features/session/presentation/session_view.dart' deferred as session;
|
||||
import 'package:tmail_ui_user/features/unknown_route_page/unknown_route_page_view.dart';
|
||||
import 'package:tmail_ui_user/main/pages/deferred_widget.dart';
|
||||
import 'package:tmail_ui_user/main/routes/app_routes.dart';
|
||||
|
||||
@@ -60,6 +61,7 @@ class AppPages {
|
||||
manage_account_dashboard.loadLibrary,
|
||||
() => manage_account_dashboard.ManageAccountDashBoardView()),
|
||||
binding: ManageAccountDashBoardBindings()),
|
||||
unknownRoutePage,
|
||||
if (!BuildUtils.isWeb)
|
||||
...[
|
||||
GetPage(
|
||||
@@ -106,4 +108,9 @@ class AppPages {
|
||||
binding: RulesFilterCreatorBindings())
|
||||
]
|
||||
];
|
||||
|
||||
static final unknownRoutePage = GetPage(
|
||||
name: AppRoutes.unknownRoutePage,
|
||||
page: () => UnknownRoutePageView(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -12,4 +12,5 @@ abstract class AppRoutes {
|
||||
static const identityCreator = '/identity_creator';
|
||||
static const rulesFilterCreator = '/rules_filter_creator';
|
||||
static const emailsForwardCreator = '/emails_forward_creator';
|
||||
static const unknownRoutePage = '/notfound';
|
||||
}
|
||||
Reference in New Issue
Block a user