add the icon to nave bar and remove from menu

This commit is contained in:
Rafeek-Khoudare
2025-07-23 14:08:38 +03:00
parent 99852464c7
commit 15b6d642ff
4 changed files with 28 additions and 12 deletions

View File

@ -12,6 +12,7 @@ import 'package:syncrow_app/features/app_layout/model/space_model.dart';
import 'package:syncrow_app/features/app_layout/view/widgets/app_bar_home_dropdown.dart';
import 'package:syncrow_app/features/auth/model/project_model.dart';
import 'package:syncrow_app/features/auth/model/user_model.dart';
import 'package:syncrow_app/features/booking_system/presentation/screens/booking_system_page.dart';
import 'package:syncrow_app/features/devices/bloc/devices_cubit.dart';
import 'package:syncrow_app/features/devices/model/subspace_model.dart';
import 'package:syncrow_app/features/devices/view/widgets/devices_view_body.dart';
@ -32,6 +33,7 @@ import 'package:syncrow_app/services/api/spaces_api.dart';
import 'package:syncrow_app/utils/constants/temp_const.dart';
import 'package:syncrow_app/utils/helpers/snack_bar.dart';
import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
import 'package:syncrow_app/utils/resource_manager/font_manager.dart';
part 'home_state.dart';
class HomeCubit extends Cubit<HomeState> {
@ -538,6 +540,7 @@ class HomeCubit extends Cubit<HomeState> {
// onPressed: () {},
// ),
],
'Booking': [],
'Menu': [
// IconButton(
// icon: SvgPicture.asset(
@ -554,6 +557,18 @@ class HomeCubit extends Cubit<HomeState> {
// 'Dashboard': const AppBarHomeDropdown(),
'Devices': const AppBarHomeDropdown(),
'Automation': const AppBarHomeDropdown(),
'Booking': Padding(
padding: const EdgeInsets.only(left: 15),
child: Text(
'Booking',
style: TextStyle(
color: ColorsManager.textPrimaryColor,
fontSize: 26,
fontFamily: FontsManager.fontFamily,
fontWeight: FontWeight.w700,
),
),
),
'Menu': Padding(
padding: const EdgeInsets.only(left: 15),
child: Image.asset(
@ -571,6 +586,7 @@ class HomeCubit extends Cubit<HomeState> {
defaultBottomNavBarItem(icon: Assets.assetsIconsDevices, label: 'Devices'),
defaultBottomNavBarItem(
icon: Assets.assetsIconsRoutines, label: 'Automation'),
defaultBottomNavBarItem(icon: Assets.bookingIcon, label: 'Booking'),
defaultBottomNavBarItem(icon: Assets.assetsIconsMenu, label: 'Menu'),
];
@ -582,6 +598,7 @@ class HomeCubit extends Cubit<HomeState> {
child: const DevicesViewBody(),
),
const RoutinesView(),
const BookingSystemPage(),
const MenuView(),
];