push water leak device

This commit is contained in:
ashrafzarkanisala
2024-10-07 11:26:30 +03:00
parent 2b5249e985
commit 9ea8e3be2b
13 changed files with 772 additions and 27 deletions

View File

@ -30,6 +30,8 @@ import 'package:syncrow_web/pages/device_managment/wall_sensor/view/wall_sensor_
import 'package:syncrow_web/pages/device_managment/wall_sensor/view/wall_sensor_conrtols.dart';
import 'package:syncrow_web/pages/device_managment/water_heater/view/water_heater_batch_control.dart';
import 'package:syncrow_web/pages/device_managment/water_heater/view/water_heater_device_control.dart';
import 'package:syncrow_web/pages/device_managment/water_leak/view/water_leak_batch_control_view.dart';
import 'package:syncrow_web/pages/device_managment/water_leak/view/water_leak_control_view.dart';
import '../../one_g_glass_switch/view/one_gang_glass_switch_control_view.dart';
@ -88,6 +90,10 @@ mixin RouteControlsBasedCode {
return GarageDoorControlView(
deviceId: device.uuid!,
);
case 'WL':
return WaterLeakView(
deviceId: device.uuid!,
);
default:
return const SizedBox();
}
@ -211,6 +217,13 @@ mixin RouteControlsBasedCode {
.map((e) => e.uuid!)
.toList(),
);
case 'WL':
return WaterLeakBatchControlView(
deviceIds: devices
.where((e) => (e.productType == 'WL'))
.map((e) => e.uuid!)
.toList(),
);
default:
return const SizedBox();
}