Remove unused nodes list page route

OmarHatem committed Nov 26, 2022 at 14:07 UTC 0188089bd8d3656ea262200681dfbc404fee6851
4 files changed +2 -7
lib/di.dart
-2
@@ -489,8 +489,6 @@ Future setup(
489 _nodeSource, appStore.wallet!, appStore.settingsStore);
490 });
491
492 - getIt.registerFactory(() => NodeListPage(getIt.get<NodeListViewModel>()));
493 -
492 getIt.registerFactory(() => ConnectionSyncPage(getIt.get<NodeListViewModel>(), getIt.get<DashboardViewModel>()));
493
494 getIt.registerFactory(() => SecurityBackupPage(getIt.get<SecuritySettingsViewModel>()));
lib/router.dart
-4
@@ -278,10 +278,6 @@ Route<dynamic> createRoute(RouteSettings settings) {
278 param2: false),
279 onWillPop: () async => false));
280
281 - case Routes.nodeList:
282 - return CupertinoPageRoute<void>(
283 - builder: (_) => getIt.get<NodeListPage>());
284 -
281 case Routes.connectionSync:
282 return CupertinoPageRoute<void>(
283 builder: (_) => getIt.get<ConnectionSyncPage>());
lib/routes.dart
-1
@@ -21,7 +21,6 @@ class Routes {
21 static const seedLanguage = '/seed_language';
22 static const walletList = '/view_model.wallet_list';
23 static const auth = '/auth';
24 - static const nodeList = '/node_list';
24 static const newNode = '/new_node_list';
25 static const login = '/login';
26 static const splash = '/splash';
lib/src/screens/nodes/nodes_list_page.dart
+2
@@ -23,6 +23,8 @@ class NodeListPage extends BasePage {
23
24 @override
25 Widget trailing(context) {
26 + // TODO: check if this will be used in the new design and then delete the whole page
27 + // as it's not used anymore
28 return Container(
29 height: 32,
30 decoration: BoxDecoration(