diff --git a/assets/icons/MenuIcons/GeneralSettingsIcons/clearCach.svg b/assets/icons/MenuIcons/GeneralSettingsIcons/clearCach.svg
new file mode 100644
index 0000000..20ec573
--- /dev/null
+++ b/assets/icons/MenuIcons/GeneralSettingsIcons/clearCach.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/GeneralSettingsIcons/language.svg b/assets/icons/MenuIcons/GeneralSettingsIcons/language.svg
new file mode 100644
index 0000000..15bd55d
--- /dev/null
+++ b/assets/icons/MenuIcons/GeneralSettingsIcons/language.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/GeneralSettingsIcons/networkDiagnosis.svg b/assets/icons/MenuIcons/GeneralSettingsIcons/networkDiagnosis.svg
new file mode 100644
index 0000000..89edd09
--- /dev/null
+++ b/assets/icons/MenuIcons/GeneralSettingsIcons/networkDiagnosis.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/GeneralSettingsIcons/temperatureUnit.svg b/assets/icons/MenuIcons/GeneralSettingsIcons/temperatureUnit.svg
new file mode 100644
index 0000000..ff1291a
--- /dev/null
+++ b/assets/icons/MenuIcons/GeneralSettingsIcons/temperatureUnit.svg
@@ -0,0 +1,10 @@
+
diff --git a/assets/icons/MenuIcons/GeneralSettingsIcons/touchTone.svg b/assets/icons/MenuIcons/GeneralSettingsIcons/touchTone.svg
new file mode 100644
index 0000000..2d1b5eb
--- /dev/null
+++ b/assets/icons/MenuIcons/GeneralSettingsIcons/touchTone.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/icons/MenuIcons/GeneralSettingsIcons/voiceAssistant.svg b/assets/icons/MenuIcons/GeneralSettingsIcons/voiceAssistant.svg
new file mode 100644
index 0000000..053b9ae
--- /dev/null
+++ b/assets/icons/MenuIcons/GeneralSettingsIcons/voiceAssistant.svg
@@ -0,0 +1,9 @@
+
diff --git a/assets/icons/MenuIcons/HomeManagementIcons/CreateHome.svg b/assets/icons/MenuIcons/HomeManagementIcons/CreateHome.svg
new file mode 100644
index 0000000..5d7d222
--- /dev/null
+++ b/assets/icons/MenuIcons/HomeManagementIcons/CreateHome.svg
@@ -0,0 +1,8 @@
+
diff --git a/assets/icons/MenuIcons/HomeManagementIcons/ManageYourHome.svg b/assets/icons/MenuIcons/HomeManagementIcons/ManageYourHome.svg
new file mode 100644
index 0000000..6e729d7
--- /dev/null
+++ b/assets/icons/MenuIcons/HomeManagementIcons/ManageYourHome.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/icons/MenuIcons/HomeManagementIcons/joinAHome.svg b/assets/icons/MenuIcons/HomeManagementIcons/joinAHome.svg
new file mode 100644
index 0000000..1ad882a
--- /dev/null
+++ b/assets/icons/MenuIcons/HomeManagementIcons/joinAHome.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/LeagalInfoIcons/About.svg b/assets/icons/MenuIcons/LeagalInfoIcons/About.svg
new file mode 100644
index 0000000..47e30f5
--- /dev/null
+++ b/assets/icons/MenuIcons/LeagalInfoIcons/About.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/icons/MenuIcons/LeagalInfoIcons/PrivacyPolicy.svg b/assets/icons/MenuIcons/LeagalInfoIcons/PrivacyPolicy.svg
new file mode 100644
index 0000000..c5d1e3d
--- /dev/null
+++ b/assets/icons/MenuIcons/LeagalInfoIcons/PrivacyPolicy.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/LeagalInfoIcons/UserAgreement.svg b/assets/icons/MenuIcons/LeagalInfoIcons/UserAgreement.svg
new file mode 100644
index 0000000..6cabfad
--- /dev/null
+++ b/assets/icons/MenuIcons/LeagalInfoIcons/UserAgreement.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/MessagesCenterIcons/Alerts.svg b/assets/icons/MenuIcons/MessagesCenterIcons/Alerts.svg
new file mode 100644
index 0000000..7762dd4
--- /dev/null
+++ b/assets/icons/MenuIcons/MessagesCenterIcons/Alerts.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/icons/MenuIcons/MessagesCenterIcons/FAQs.svg b/assets/icons/MenuIcons/MessagesCenterIcons/FAQs.svg
new file mode 100644
index 0000000..ab3dc9f
--- /dev/null
+++ b/assets/icons/MenuIcons/MessagesCenterIcons/FAQs.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/icons/MenuIcons/MessagesCenterIcons/HelpAndFeedback.svg b/assets/icons/MenuIcons/MessagesCenterIcons/HelpAndFeedback.svg
new file mode 100644
index 0000000..fb53dd0
--- /dev/null
+++ b/assets/icons/MenuIcons/MessagesCenterIcons/HelpAndFeedback.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/MessagesCenterIcons/Messages.svg b/assets/icons/MenuIcons/MessagesCenterIcons/Messages.svg
new file mode 100644
index 0000000..c9a7e35
--- /dev/null
+++ b/assets/icons/MenuIcons/MessagesCenterIcons/Messages.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/MenuIcons/SecurityAndPrivacyIcons/Privacy.svg b/assets/icons/MenuIcons/SecurityAndPrivacyIcons/Privacy.svg
new file mode 100644
index 0000000..69ea2cd
--- /dev/null
+++ b/assets/icons/MenuIcons/SecurityAndPrivacyIcons/Privacy.svg
@@ -0,0 +1,4 @@
+
diff --git a/assets/icons/MenuIcons/SecurityAndPrivacyIcons/Securty.svg b/assets/icons/MenuIcons/SecurityAndPrivacyIcons/Securty.svg
new file mode 100644
index 0000000..beecb3e
--- /dev/null
+++ b/assets/icons/MenuIcons/SecurityAndPrivacyIcons/Securty.svg
@@ -0,0 +1,3 @@
+
diff --git a/lib/features/menu/bloc/menu_cubit.dart b/lib/features/menu/bloc/menu_cubit.dart
index 89ece3f..a51a41e 100644
--- a/lib/features/menu/bloc/menu_cubit.dart
+++ b/lib/features/menu/bloc/menu_cubit.dart
@@ -1,6 +1,4 @@
import 'package:flutter_bloc/flutter_bloc.dart';
-import 'package:syncrow_app/features/menu/model/list_item_model.dart';
-import 'package:syncrow_app/features/menu/model/menu_list_model.dart';
part 'menu_state.dart';
@@ -9,85 +7,85 @@ class MenuCubit extends Cubit {
static MenuCubit of(context) => BlocProvider.of(context);
- List menuLists = [
- MenuListModel(
- label: 'Home Management',
- listItems: [
- ListItemModel(
- label: 'Create a Home',
- ),
- ListItemModel(
- label: 'Join a Home',
- ),
- ListItemModel(
- label: 'Manage Your Home',
- ),
- ],
- ),
- MenuListModel(
- label: 'General Settings',
- listItems: [
- ListItemModel(
- label: 'Voice Assistant',
- ),
- ListItemModel(
- label: 'Temperature unit',
- ),
- ListItemModel(
- label: 'Touch tone on panel',
- ),
- ListItemModel(
- label: 'Language',
- ),
- ListItemModel(
- label: 'Network diagnosis',
- ),
- ListItemModel(
- label: 'Clear cache',
- ),
- ],
- ),
- MenuListModel(
- label: 'Messages Center',
- listItems: [
- ListItemModel(
- label: 'Alerts',
- ),
- ListItemModel(
- label: 'Messages',
- ),
- ListItemModel(
- label: 'FAQs',
- ),
- ListItemModel(
- label: 'Help & Feedback',
- ),
- ],
- ),
- MenuListModel(
- label: 'Security and Privacy',
- listItems: [
- ListItemModel(
- label: 'Security',
- ),
- ListItemModel(
- label: 'privacy',
- ),
- ],
- ),
- MenuListModel(
- label: 'Legal Information',
- listItems: [
- ListItemModel(
- label: 'About',
- ),
- ListItemModel(
- label: 'Privacy Policy',
- ),
- ListItemModel(
- label: 'User Agreement',
- ),
- ],
- ),
- ];
+ // List menuLists = [
+ // MenuListModel(
+ // label: 'Home Management',
+ // listItems: [
+ // ListItemModel(
+ // label: 'Create a Home',
+ // ),
+ // ListItemModel(
+ // label: 'Join a Home',
+ // ),
+ // ListItemModel(
+ // label: 'Manage Your Home',
+ // ),
+ // ],
+ // ),
+ // MenuListModel(
+ // label: 'General Settings',
+ // listItems: [
+ // ListItemModel(
+ // label: 'Voice Assistant',
+ // ),
+ // ListItemModel(
+ // label: 'Temperature unit',
+ // ),
+ // ListItemModel(
+ // label: 'Touch tone on panel',
+ // ),
+ // ListItemModel(
+ // label: 'Language',
+ // ),
+ // ListItemModel(
+ // label: 'Network diagnosis',
+ // ),
+ // ListItemModel(
+ // label: 'Clear cache',
+ // ),
+ // ],
+ // ),
+ // MenuListModel(
+ // label: 'Messages Center',
+ // listItems: [
+ // ListItemModel(
+ // label: 'Alerts',
+ // ),
+ // ListItemModel(
+ // label: 'Messages',
+ // ),
+ // ListItemModel(
+ // label: 'FAQs',
+ // ),
+ // ListItemModel(
+ // label: 'Help & Feedback',
+ // ),
+ // ],
+ // ),
+ // MenuListModel(
+ // label: 'Security and Privacy',
+ // listItems: [
+ // ListItemModel(
+ // label: 'Security',
+ // ),
+ // ListItemModel(
+ // label: 'privacy',
+ // ),
+ // ],
+ // ),
+ // MenuListModel(
+ // label: 'Legal Information',
+ // listItems: [
+ // ListItemModel(
+ // label: 'About',
+ // ),
+ // ListItemModel(
+ // label: 'Privacy Policy',
+ // ),
+ // ListItemModel(
+ // label: 'User Agreement',
+ // ),
+ // ],
+ // ),
+ // ];
}
diff --git a/lib/features/menu/model/list_item_model.dart b/lib/features/menu/model/list_item_model.dart
deleted file mode 100644
index 70a812a..0000000
--- a/lib/features/menu/model/list_item_model.dart
+++ /dev/null
@@ -1,9 +0,0 @@
-class ListItemModel {
- final String? icon;
- final String? label;
-
- ListItemModel({
- this.icon,
- this.label,
- });
-}
diff --git a/lib/features/menu/model/menu_list_model.dart b/lib/features/menu/model/menu_list_model.dart
deleted file mode 100644
index 64aaa14..0000000
--- a/lib/features/menu/model/menu_list_model.dart
+++ /dev/null
@@ -1,11 +0,0 @@
-import 'list_item_model.dart';
-
-class MenuListModel {
- final String? label;
- final List? listItems;
-
- MenuListModel({
- this.label,
- this.listItems,
- });
-}
diff --git a/lib/features/menu/view/menu_view.dart b/lib/features/menu/view/menu_view.dart
index 1c55a36..ff7e9ca 100644
--- a/lib/features/menu/view/menu_view.dart
+++ b/lib/features/menu/view/menu_view.dart
@@ -2,12 +2,19 @@ import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:syncrow_app/features/auth/bloc/auth_cubit.dart';
import 'package:syncrow_app/features/menu/bloc/menu_cubit.dart';
+import 'package:syncrow_app/features/menu/view/widgets/home%20management/create_home_view.dart';
+import 'package:syncrow_app/features/menu/view/widgets/join_home/join_home_view.dart';
+import 'package:syncrow_app/features/menu/view/widgets/manage_home/manage_home_view.dart';
import 'package:syncrow_app/features/menu/view/widgets/menu_list.dart';
-import 'package:syncrow_app/features/menu/view/widgets/profile_tab.dart';
+import 'package:syncrow_app/features/menu/view/widgets/privacy/privacy_view.dart';
+import 'package:syncrow_app/features/menu/view/widgets/profile/profile_tab.dart';
+import 'package:syncrow_app/features/menu/view/widgets/securty/securty_view.dart';
import 'package:syncrow_app/features/shared_widgets/default_container.dart';
import 'package:syncrow_app/features/shared_widgets/text_widgets/body_large.dart';
+import 'package:syncrow_app/generated/assets.dart';
import 'package:syncrow_app/navigation/routing_constants.dart';
import 'package:syncrow_app/utils/context_extension.dart';
+import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
import 'package:syncrow_app/utils/resource_manager/constants.dart';
class MenuView extends StatelessWidget {
@@ -33,11 +40,10 @@ class MenuView extends StatelessWidget {
child: Column(
children: [
const ProfileTab(),
- ...MenuCubit.of(context).menuLists.map(
- (list) => MenuList(
- listModel: list,
- ),
- ),
+ for (var section in menuSections)
+ MenuList(
+ section: section,
+ ),
const SizedBox(
height: 15,
),
@@ -75,3 +81,123 @@ class MenuView extends StatelessWidget {
);
}
}
+
+List