mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
@ -4,8 +4,7 @@ import 'package:syncrow_web/pages/device_managment/all_devices/models/devices_mo
|
||||
import 'package:syncrow_web/utils/color_manager.dart';
|
||||
import 'package:syncrow_web/utils/extension/build_context_x.dart';
|
||||
|
||||
class DeviceBatchControlDialog extends StatelessWidget
|
||||
with RouteControlsBasedCode {
|
||||
class DeviceBatchControlDialog extends StatelessWidget with RouteControlsBasedCode {
|
||||
final List<AllDevicesModel> devices;
|
||||
|
||||
const DeviceBatchControlDialog({super.key, required this.devices});
|
||||
@ -44,7 +43,7 @@ class DeviceBatchControlDialog extends StatelessWidget
|
||||
height: 8,
|
||||
),
|
||||
Text(
|
||||
'Batch Control',
|
||||
"Batch Control",
|
||||
style: context.textTheme.bodySmall!.copyWith(
|
||||
color: ColorsManager.dialogBlueTitle,
|
||||
),
|
||||
@ -105,39 +104,39 @@ String getBatchDialogName(AllDevicesModel device) {
|
||||
*/
|
||||
switch (device.productType) {
|
||||
case '1G':
|
||||
return 'Smart Light Switch';
|
||||
return "Smart Light Switch";
|
||||
case '2G':
|
||||
return 'Smart Light Switch';
|
||||
return "Smart Light Switch";
|
||||
case '3G':
|
||||
return 'Smart Light Switch';
|
||||
return "Smart Light Switch";
|
||||
case 'GW':
|
||||
return 'Gateway';
|
||||
return "Gateway";
|
||||
case 'DL':
|
||||
return 'Door Lock';
|
||||
return "Door Lock";
|
||||
case 'WPS':
|
||||
return 'White Presence Sensor';
|
||||
return "White Presence Sensor";
|
||||
case 'CPS':
|
||||
return 'Black Presence Sensor';
|
||||
return "Black Presence Sensor";
|
||||
case 'CUR':
|
||||
return 'Smart Curtains';
|
||||
return "Smart Curtains";
|
||||
case 'WH':
|
||||
return 'Smart Water Heater';
|
||||
return "Smart Water Heater";
|
||||
case 'AC':
|
||||
return 'Smart AC';
|
||||
return "Smart AC";
|
||||
case 'DS':
|
||||
return 'Door / Window Sensor';
|
||||
return "Door / Window Sensor";
|
||||
case '1GT':
|
||||
return 'Touch Switch';
|
||||
return "Touch Switch";
|
||||
case '2GT':
|
||||
return 'Touch Switch';
|
||||
return "Touch Switch";
|
||||
case '3GT':
|
||||
return 'Touch Switch';
|
||||
return "Touch Switch";
|
||||
case 'GD':
|
||||
return 'Garage Door Opener';
|
||||
return "Garage Door Opener";
|
||||
case 'WL':
|
||||
return 'Water Leak Sensor';
|
||||
return "Water Leak Sensor";
|
||||
case 'SOS':
|
||||
return 'SOS';
|
||||
return "SOS";
|
||||
default:
|
||||
return device.categoryName ?? 'Device Control';
|
||||
}
|
||||
|
Reference in New Issue
Block a user