Merge pull request #23 from SyncrowIOT/Syncing_with_backend

Synced with the backend
This commit is contained in:
Mohammad Salameh
2024-04-30 12:14:10 +03:00
committed by GitHub
19 changed files with 255 additions and 181 deletions

View File

@ -26,7 +26,7 @@ class CustomSwitch extends StatelessWidget {
onTap: () {
DevicesCubit.getInstance().deviceControl(
DeviceControlModel(
deviceId: device.id,
deviceId: device.uuid,
code: device.status
.firstWhere((status) => status.code == "switch")
.code,
@ -34,7 +34,7 @@ class CustomSwitch extends StatelessWidget {
.firstWhere((status) => status.code == "switch")
.value!,
),
device.id!,
device.uuid!,
);
},
child: Container(