scene and automation has been updated

This commit is contained in:
hannathkadher
2024-10-31 10:19:38 +04:00
parent 13a4bf25b3
commit 80d2651370
11 changed files with 47 additions and 28 deletions

View File

@ -3,7 +3,7 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:syncrow_app/features/app_layout/bloc/home_cubit.dart';
import 'package:syncrow_app/features/app_layout/model/space_model.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/model/subspace_model.dart';
import 'package:syncrow_app/features/scene/bloc/tab_change/tab_change_bloc.dart';
import 'package:syncrow_app/features/scene/bloc/tab_change/tab_change_event.dart';
import 'package:syncrow_app/features/scene/widgets/scene_devices/scene_devices_body.dart';
@ -27,7 +27,7 @@ class _SceneRoomsTabBarDevicesViewState
extends State<SceneRoomsTabBarDevicesView>
with SingleTickerProviderStateMixin {
late final TabController _tabController;
List<RoomModel>? rooms = [];
List<SubSpaceModel>? rooms = [];
late final SpaceModel selectedSpace;
@override
@ -38,11 +38,10 @@ class _SceneRoomsTabBarDevicesViewState
if (rooms![0].id != '-1') {
rooms?.insert(
0,
RoomModel(
SubSpaceModel(
name: 'All Devices',
devices: DevicesCubit.getInstance().allDevices,
id: '-1',
type: SpaceType.Room,
),
);
}