mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
Bug fixes
This commit is contained in:
@ -7,8 +7,7 @@ import 'package:syncrow_web/pages/device_managment/all_devices/helper/route_cont
|
|||||||
import 'package:syncrow_web/pages/device_managment/all_devices/models/devices_model.dart';
|
import 'package:syncrow_web/pages/device_managment/all_devices/models/devices_model.dart';
|
||||||
import 'package:syncrow_web/utils/color_manager.dart';
|
import 'package:syncrow_web/utils/color_manager.dart';
|
||||||
|
|
||||||
class DeviceBatchControlDialog extends StatelessWidget
|
class DeviceBatchControlDialog extends StatelessWidget with RouteControlsBasedCode {
|
||||||
with RouteControlsBasedCode {
|
|
||||||
final List<AllDevicesModel> devices;
|
final List<AllDevicesModel> devices;
|
||||||
|
|
||||||
const DeviceBatchControlDialog({super.key, required this.devices});
|
const DeviceBatchControlDialog({super.key, required this.devices});
|
||||||
@ -110,11 +109,11 @@ String getBatchDialogName(AllDevicesModel device) {
|
|||||||
case '1G':
|
case '1G':
|
||||||
return "Smart Light Switch";
|
return "Smart Light Switch";
|
||||||
case '2G':
|
case '2G':
|
||||||
return "2Gang Light";
|
return "Smart Light Switch";
|
||||||
case '3G':
|
case '3G':
|
||||||
return "Living Room";
|
return "Smart Light Switch";
|
||||||
case 'GW':
|
case 'GW':
|
||||||
return "GateWay";
|
return "Gateway";
|
||||||
case 'DL':
|
case 'DL':
|
||||||
return "Door Lock";
|
return "Door Lock";
|
||||||
case 'WPS':
|
case 'WPS':
|
||||||
@ -124,9 +123,21 @@ String getBatchDialogName(AllDevicesModel device) {
|
|||||||
case 'CUR':
|
case 'CUR':
|
||||||
return "Smart Curtains";
|
return "Smart Curtains";
|
||||||
case 'WH':
|
case 'WH':
|
||||||
return "Smart Water Hater";
|
return "Smart Water Heater";
|
||||||
case 'AC':
|
case 'AC':
|
||||||
return "Smart AC";
|
return "Smart AC";
|
||||||
|
case 'DS':
|
||||||
|
return "Door / Window Sensor";
|
||||||
|
case '1GT':
|
||||||
|
return "Touch Switch";
|
||||||
|
case '2GT':
|
||||||
|
return "Touch Switch";
|
||||||
|
case '3GT':
|
||||||
|
return "Touch Switch";
|
||||||
|
case 'GD':
|
||||||
|
return "Garage Door Opener";
|
||||||
|
case 'WL':
|
||||||
|
return "Water Leak Sensor";
|
||||||
default:
|
default:
|
||||||
return device.categoryName ?? 'Device Control';
|
return device.categoryName ?? 'Device Control';
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ class DeviceControlDialog extends StatelessWidget with RouteControlsBasedCode {
|
|||||||
children: [
|
children: [
|
||||||
const SizedBox(),
|
const SizedBox(),
|
||||||
Text(
|
Text(
|
||||||
device.categoryName ?? 'Device Control',
|
device.productName ?? 'Device Control',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
|
Reference in New Issue
Block a user