mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 04:37:55 +00:00
cleaned some warring messages
This commit is contained in:
@@ -46,9 +46,9 @@ class DevicesCubit extends Cubit<DevicesState> {
|
||||
|
||||
void updateDevicesStatus(DevicesCategoryModel category) {
|
||||
bool? tempStatus = category.devices[0].status;
|
||||
for (var AC in category.devices) {
|
||||
//check if there any AC have a different status than the initial ==> turn off the universal switch
|
||||
if (AC.status != tempStatus) {
|
||||
for (var ac in category.devices) {
|
||||
//check if there any ac have a different status than the initial ==> turn off the universal switch
|
||||
if (ac.status != tempStatus) {
|
||||
category.devicesStatus = null;
|
||||
emit(DeviceSwitchChanged());
|
||||
return;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// ignore_for_file: constant_identifier_names
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:syncrow_app/features/devices/model/device_model.dart';
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ class LightsList extends StatelessWidget {
|
||||
BodySmall(text: lights[index].name ?? ""),
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
var device = lights[index];
|
||||
// LightsCubit.get(context).selectAC(device);
|
||||
},
|
||||
icon: const Icon(
|
||||
|
||||
Reference in New Issue
Block a user