From 969875ad49c1e716176b2745c3d4c50a9af6a5ae Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 10 May 2022 08:42:08 +1000 Subject: [PATCH 1/2] Hide manufacturer / supplier / customer screens - For now, as they don't do anything useful - Will add back in once features are expanded --- lib/settings/home_settings.dart | 4 ++++ lib/widget/home.dart | 3 +++ 2 files changed, 7 insertions(+) diff --git a/lib/settings/home_settings.dart b/lib/settings/home_settings.dart index 7b93f40c..c5776c65 100644 --- a/lib/settings/home_settings.dart +++ b/lib/settings/home_settings.dart @@ -85,6 +85,9 @@ class _HomeScreenSettingsState extends State { }, ), ), + // TODO: When these features are improved, add them back in! + // Currently, the company display does not provide any value + /* ListTile( title: Text(L10().homeShowSuppliers), subtitle: Text(L10().homeShowSuppliersDescription), @@ -127,6 +130,7 @@ class _HomeScreenSettingsState extends State { }, ), ), + */ ] ) ) diff --git a/lib/widget/home.dart b/lib/widget/home.dart index eefd9c64..7cfb845c 100644 --- a/lib/widget/home.dart +++ b/lib/widget/home.dart @@ -290,6 +290,8 @@ class _InvenTreeHomePageState extends State { )); } + // TODO: Add these tiles back in once the features are fleshed out + /* // Suppliers if (homeShowSuppliers) { tiles.add(_listTile( @@ -325,6 +327,7 @@ class _InvenTreeHomePageState extends State { } )); } + */ // Settings tiles.add(_listTile( From 4bd800d27310940bea835b4c0bca93c91fc63d1c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 10 May 2022 17:07:53 +1000 Subject: [PATCH 2/2] linting fix --- lib/widget/home.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widget/home.dart b/lib/widget/home.dart index 7cfb845c..23153a89 100644 --- a/lib/widget/home.dart +++ b/lib/widget/home.dart @@ -16,7 +16,6 @@ import "package:inventree/user_profile.dart"; import "package:inventree/inventree/notification.dart"; import "package:inventree/widget/category_display.dart"; -import "package:inventree/widget/company_list.dart"; import "package:inventree/widget/drawer.dart"; import "package:inventree/widget/location_display.dart"; import "package:inventree/widget/notifications.dart"; @@ -117,7 +116,7 @@ class _InvenTreeHomePageState extends State { ); } - + /* void _showSuppliers(BuildContext context) { if (!InvenTreeAPI().checkConnection(context)) return; @@ -135,6 +134,7 @@ class _InvenTreeHomePageState extends State { Navigator.push(context, MaterialPageRoute(builder: (context) => CompanyListWidget(L10().customers, {"is_customer": "true"}))); } + */ void _selectProfile() { Navigator.push(