Remove unused nodes list page route

This commit is contained in:
OmarHatem 2022-11-26 14:07:01 +02:00
parent 08edd4d8ff
commit 0188089bd8
4 changed files with 2 additions and 7 deletions

View file

@ -489,8 +489,6 @@ Future setup(
_nodeSource, appStore.wallet!, appStore.settingsStore); _nodeSource, appStore.wallet!, appStore.settingsStore);
}); });
getIt.registerFactory(() => NodeListPage(getIt.get<NodeListViewModel>()));
getIt.registerFactory(() => ConnectionSyncPage(getIt.get<NodeListViewModel>(), getIt.get<DashboardViewModel>())); getIt.registerFactory(() => ConnectionSyncPage(getIt.get<NodeListViewModel>(), getIt.get<DashboardViewModel>()));
getIt.registerFactory(() => SecurityBackupPage(getIt.get<SecuritySettingsViewModel>())); getIt.registerFactory(() => SecurityBackupPage(getIt.get<SecuritySettingsViewModel>()));

View file

@ -278,10 +278,6 @@ Route<dynamic> createRoute(RouteSettings settings) {
param2: false), param2: false),
onWillPop: () async => false)); onWillPop: () async => false));
case Routes.nodeList:
return CupertinoPageRoute<void>(
builder: (_) => getIt.get<NodeListPage>());
case Routes.connectionSync: case Routes.connectionSync:
return CupertinoPageRoute<void>( return CupertinoPageRoute<void>(
builder: (_) => getIt.get<ConnectionSyncPage>()); builder: (_) => getIt.get<ConnectionSyncPage>());

View file

@ -21,7 +21,6 @@ class Routes {
static const seedLanguage = '/seed_language'; static const seedLanguage = '/seed_language';
static const walletList = '/view_model.wallet_list'; static const walletList = '/view_model.wallet_list';
static const auth = '/auth'; static const auth = '/auth';
static const nodeList = '/node_list';
static const newNode = '/new_node_list'; static const newNode = '/new_node_list';
static const login = '/login'; static const login = '/login';
static const splash = '/splash'; static const splash = '/splash';

View file

@ -23,6 +23,8 @@ class NodeListPage extends BasePage {
@override @override
Widget trailing(context) { Widget trailing(context) {
// TODO: check if this will be used in the new design and then delete the whole page
// as it's not used anymore
return Container( return Container(
height: 32, height: 32,
decoration: BoxDecoration( decoration: BoxDecoration(