push water heater batch control view

This commit is contained in:
ashrafzarkanisala
2024-09-23 08:32:49 +03:00
parent b5eeeedcd2
commit 0c530e9ea6
7 changed files with 217 additions and 18 deletions

View File

@ -20,6 +20,7 @@ import 'package:syncrow_web/pages/device_managment/two_gang_switch/view/wall_lig
import 'package:syncrow_web/pages/device_managment/two_gang_switch/view/wall_light_device_control.dart';
import 'package:syncrow_web/pages/device_managment/wall_sensor/view/wall_sensor_batch_control.dart';
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';
mixin RouteControlsBasedCode {
@ -56,7 +57,7 @@ mixin RouteControlsBasedCode {
case 'AC':
return AcDeviceControlsView(device: device);
case 'WH':
return WaterHeaterDeviceControl(
return WaterHeaterDeviceControlView(
device: device,
);
case 'DS':
@ -140,6 +141,14 @@ mixin RouteControlsBasedCode {
.where((e) => (e.productType == 'AC'))
.map((e) => e.uuid!)
.toList());
case 'WH':
return WaterHEaterBatchControlView(
deviceIds: devices
.where((e) => (e.productType == 'WH'))
.map((e) => e.uuid!)
.toList(),
);
default:
return const SizedBox();
}