mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 22:37:55 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user