Update device interfaces and add new doors list view widget

- Add a new widget 'DoorsListView' for displaying a list of smart doors
- Update the navigation method to devices interfaces in 'RoomPageSwitch' widget
- Add battery and doorlock icons to auto generated assets
This commit is contained in:
Mohammad Salameh
2024-04-16 14:53:43 +03:00
parent cbe4fb285b
commit cc6b68e338
6 changed files with 142 additions and 62 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ import 'package:syncrow_app/features/devices/view/widgets/curtains/curtain_view.
import 'package:syncrow_app/features/devices/view/widgets/gateway/gateway_view.dart';
import 'package:syncrow_app/features/devices/view/widgets/lights/lights_view.dart';
import 'package:syncrow_app/features/devices/view/widgets/three_gang/three_gang_interface.dart';
import 'package:syncrow_app/features/devices/view/widgets/smart_door/door_view.dart';
import 'package:syncrow_app/features/devices/view/widgets/smart_door/doors_list_view.dart';
import 'package:syncrow_app/services/api/devices_api.dart';
import 'package:syncrow_app/services/api/network_exception.dart';
import 'package:syncrow_app/services/api/spaces_api.dart';
@@ -84,7 +84,7 @@ class DevicesCubit extends Cubit<DevicesState> {
case DeviceType.LightBulb:
return const LightsView();
case DeviceType.DoorLock:
return const DoorView();
return const DoorsListView();
case DeviceType.Curtain:
return const CurtainView();
// case DeviceType.ThreeGang: