fix search filter tabs and checkbox no data selection

This commit is contained in:
ashrafzarkanisala
2024-09-08 21:02:48 +03:00
parent ce861efa3f
commit e0f7c7ab39
5 changed files with 85 additions and 30 deletions

View File

@ -59,7 +59,7 @@ class CurtainBloc extends Bloc<CurtainEvent, CurtainState> {
}
_timer = Timer(const Duration(seconds: 1), () async {
try {
final controlValue = value ? 'open' : 'stop';
final controlValue = value ? 'open' : 'close';
final response = await DevicesManagementApi()
.deviceControl(deviceId, Status(code: code, value: controlValue));