mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 01:56:24 +00:00
Implemented WPS device
This commit is contained in:
@ -3,22 +3,25 @@ import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/ac/view/ac_device_control.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/all_devices/models/devices_model.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/living_room_switch/view/living_room_device_control.dart';
|
||||
import 'package:syncrow_web/pages/device_managment/wall_sensor/view/wall_sensor_conrtols.dart';
|
||||
|
||||
mixin RouteControlsBasedCode {
|
||||
Widget routeControlsWidgets({required AllDevicesModel device}) {
|
||||
switch (device.categoryName) {
|
||||
case 'Switch':
|
||||
switch (device.productType) {
|
||||
case '3G':
|
||||
return LivingRoomDeviceControl(
|
||||
device: device,
|
||||
);
|
||||
case 'Gateway':
|
||||
case 'GW':
|
||||
return const SizedBox();
|
||||
case 'Residential Lock PRO':
|
||||
case 'DL':
|
||||
return const SizedBox();
|
||||
case 'Human Presence Sensor':
|
||||
case 'WPS':
|
||||
return WallSensorControls(device: device);
|
||||
case 'CPS':
|
||||
return const SizedBox();
|
||||
case 'Thermostat':
|
||||
return AcDeviceControl(device: device);
|
||||
case 'AC':
|
||||
return AcDeviceControl(device: device);
|
||||
default:
|
||||
return const SizedBox();
|
||||
}
|
||||
|
Reference in New Issue
Block a user