Refactor code structure and update dependencies

Clean up code structure, remove unused imports, and update dependencies.
No functional changes made, only code organization improvements.
This commit is contained in:
Mohammad Salameh
2024-04-03 01:55:50 +03:00
parent 9cc479ba17
commit 127d3a0295
13 changed files with 258 additions and 194 deletions

View File

@ -5,6 +5,7 @@ import 'package:flutter_svg/flutter_svg.dart';
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/dashboard/view/dashboard_view.dart';
import 'package:syncrow_app/features/devices/bloc/devices_cubit.dart';
import 'package:syncrow_app/features/devices/model/room_model.dart';
import 'package:syncrow_app/features/devices/view/widgets/devices_view_body.dart';
import 'package:syncrow_app/features/menu/view/menu_view.dart';
@ -260,7 +261,10 @@ class HomeCubit extends Cubit<HomeState> {
final List<Widget> pages = [
const DashboardView(),
// const LayoutPage(),
const DevicesViewBody(),
BlocProvider(
create: (context) => DevicesCubit(),
child: const DevicesViewBody(),
),
const SceneView(),
const MenuView(),
];